diff options
author | starkos <none@none> | 2009-04-24 02:55:10 +0400 |
---|---|---|
committer | starkos <none@none> | 2009-04-24 02:55:10 +0400 |
commit | 827ce5ef8423baf3ab5d3171189113365cf3dc5f (patch) | |
tree | 70870e27e5911a33c7eea25566daa5595759332b /premake4.lua | |
parent | cbe75c4d9cf64a2d4d870e785b72fa92019fef6f (diff) |
Phased out templates from manifest
Diffstat (limited to 'premake4.lua')
-rw-r--r-- | premake4.lua | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/premake4.lua b/premake4.lua index 1bab1ca..7bbb202 100644 --- a/premake4.lua +++ b/premake4.lua @@ -137,21 +137,11 @@ end end - local function embedtemplate(out, fname) - local s = loadscript(fname) - - local name = path.getbasename(fname) - out:write(string.format("\t\"_TEMPLATES.%s=premake.loadtemplatestring('%s',[[", name, name)) - out:write(s) - out:write("]])\",\n") - end - - premake.actions["embed"] = { description = "Embed scripts in scripts.c; required before release builds", execute = function () -- load the manifest of script files - scripts, templates, actions = dofile("src/_manifest.lua") + scripts = dofile("src/_manifest.lua") table.insert(scripts, "_premake_main.lua") -- open scripts.c and write the file header @@ -164,16 +154,6 @@ end print(fn) s = embedfile(out, "src/"..fn) end - - for i,fn in ipairs(templates) do - print(fn) - s = embedtemplate(out, "src/"..fn) - end - - for i,fn in ipairs(actions) do - print(fn) - s = embedfile(out, "src/"..fn) - end out:write("\t0\n};\n"); out:close() |