aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap.tl7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstrap.tl b/bootstrap.tl
index 4ea1896c..14124eb9 100755
--- a/bootstrap.tl
+++ b/bootstrap.tl
@@ -3,6 +3,8 @@
3local PLATFORM = arg[1] or "unix" 3local PLATFORM = arg[1] or "unix"
4 4
5local lfs = require("lfs") 5local lfs = require("lfs")
6--local tl = require("tl")
7--local tl_env = tl.new_env()
6 8
7local dependencies = { 9local dependencies = {
8 "md5", 10 "md5",
@@ -284,6 +286,11 @@ local function generate(input_filename: string, entry: Data.LuaEntry): string
284 local content = fd:read("*a"):gsub("^#![^\n]+\n", "") 286 local content = fd:read("*a"):gsub("^#![^\n]+\n", "")
285 fd:close() 287 fd:close()
286 288
289-- local tl_file = input_filename:gsub("%.lua$", ".tl")
290-- if lfs.attributes(tl_file) then
291-- content = assert(tl.gen(content, tl_env), "failed generating " .. tl_file)
292-- end
293
287 entry.length = #content 294 entry.length = #content
288 295
289 return apply_template([[ 296 return apply_template([[