Added some versioning-related features.
This commit is contained in:
parent
7968f2a4f5
commit
468adf140d
@ -1,5 +1,5 @@
|
|||||||
optimise yes
|
optimise yes
|
||||||
listmods no
|
listmods yes
|
||||||
test yes
|
test yes
|
||||||
log yes
|
log yes
|
||||||
opath kernel.lua
|
opath kernel.lua
|
||||||
|
@ -76,11 +76,16 @@ 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={"
|
ss=ss.."modules,_OSVERSION={"
|
||||||
for k,v in ipairs(tm) do
|
for k,v in ipairs(tm) do
|
||||||
ss=ss..'"'..v..'",'
|
ss=ss..'"'..v..'",'
|
||||||
end
|
end
|
||||||
ss=ss.."}\n"
|
ss=ss.."},"
|
||||||
|
if _OSVERSION == nil then
|
||||||
|
ss=ss..'"MultICE '..io.popen("git rev-parse HEAD"):read("*a"):sub(1,7)..'"\n'
|
||||||
|
else
|
||||||
|
ss=ss..'"MultICE DR0"\n'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
for k,v in pairs(ts) do
|
for k,v in pairs(ts) do
|
||||||
ss=ss..v
|
ss=ss..v
|
||||||
|
1
modules/base/osversion.lua
Normal file
1
modules/base/osversion.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
_OSVERSION="MultICE DR1"
|
Loading…
Reference in New Issue
Block a user