From 827ce5ef8423baf3ab5d3171189113365cf3dc5f Mon Sep 17 00:00:00 2001 From: starkos Date: Thu, 23 Apr 2009 22:55:10 +0000 Subject: Phased out templates from manifest --- premake4.lua | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'premake4.lua') 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() -- cgit v1.2.3