Added build time recording to listmods
This commit is contained in:
parent
a138a02d61
commit
b02997bd85
@ -77,13 +77,13 @@ print(tostring(#tm).." modules loaded.\n")
|
|||||||
-- Generate source
|
-- Generate source
|
||||||
print("Generating source")
|
print("Generating source")
|
||||||
if cfg.listmods == "yes" then
|
if cfg.listmods == "yes" then
|
||||||
ss=ss.."modules,_OSVERSION={"
|
ss=ss.."_MOD,_OSVERSION,_BD={"
|
||||||
for k,v in ipairs(tm) do
|
for k,v in ipairs(tm) do
|
||||||
ss=ss..'"'..v..'",'
|
ss=ss..'"'..v..'",'
|
||||||
end
|
end
|
||||||
ss=ss.."},"
|
ss=ss.."},"
|
||||||
if _OSVERSION == nil then
|
if _OSVERSION == nil then
|
||||||
ss=ss..'"MultICE '..io.popen("git rev-parse HEAD"):read("*a"):sub(1,7)..'"\n'
|
ss=ss..'"MultICE '..io.popen("git rev-parse HEAD"):read("*a"):sub(1,7)..'","'..os.date("%Y/%m/%d %H:%M %z")..'"\n'
|
||||||
else
|
else
|
||||||
ss=ss..'"MultICE DR0"\n'
|
ss=ss..'"MultICE DR0"\n'
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user