summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/scripts/embed.lua
diff options
context:
space:
mode:
author Robert <Robbbert@users.noreply.github.com>2020-02-06 10:02:41 +1100
committer GitHub <noreply@github.com>2020-02-06 10:02:41 +1100
commitb48efcdac640e7746612fd64899291f7af7b58ac (patch)
treef01b160b4400942c48e4d3b4f671ff77bd6d412c /3rdparty/genie/scripts/embed.lua
parenta06d8e9cc68e6c91fcd58770e972ff81ffd20275 (diff)
Revert "Sync with GENie upstream revision ce9f3c5 (#6262)" (#6263)
This reverts commit a06d8e9cc68e6c91fcd58770e972ff81ffd20275.
Diffstat (limited to '3rdparty/genie/scripts/embed.lua')
-rw-r--r--3rdparty/genie/scripts/embed.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/3rdparty/genie/scripts/embed.lua b/3rdparty/genie/scripts/embed.lua
index 39703b1dd4a..05165923c16 100644
--- a/3rdparty/genie/scripts/embed.lua
+++ b/3rdparty/genie/scripts/embed.lua
@@ -5,8 +5,6 @@
-- issues in Mac OS X Universal builds.
--
- local scriptdir = path.getdirectory(_SCRIPT)
-
local function stripfile(fname)
local f = io.open(fname)
local s = assert(f:read("*a"))
@@ -75,13 +73,13 @@
function doembed()
-- load the manifest of script files
- scripts = dofile(path.join(scriptdir, "../src/_manifest.lua"))
+ scripts = dofile("../src/_manifest.lua")
-- main script always goes at the end
table.insert(scripts, "_premake_main.lua")
-- open scripts.c and write the file header
- local out = io.open(path.join(scriptdir, "../src/host/scripts.c"), "w+b")
+ local out = io.open("../src/host/scripts.c", "w+b")
out:write("/* Premake's Lua scripts, as static data buffers for release mode builds */\n")
out:write("/* DO NOT EDIT - this file is autogenerated - see BUILD.txt */\n")
out:write("/* To regenerate this file, run: premake4 embed */ \n\n")
@@ -89,7 +87,7 @@
for i,fn in ipairs(scripts) do
print(fn)
- local s = stripfile(path.join(scriptdir,"../src/" .. fn))
+ local s = stripfile("../src/" .. fn)
writefile(out, fn, s)
end