Added some versioning-related features.
This commit is contained in:
parent
7968f2a4f5
commit
468adf140d
@ -1,5 +1,5 @@
|
||||
optimise yes
|
||||
listmods no
|
||||
listmods yes
|
||||
test yes
|
||||
log yes
|
||||
opath kernel.lua
|
||||
|
@ -76,11 +76,16 @@ print(tostring(#tm).." modules loaded.\n")
|
||||
-- Generate source
|
||||
print("Generating source")
|
||||
if cfg.listmods == "yes" then
|
||||
ss=ss.."modules={"
|
||||
ss=ss.."modules,_OSVERSION={"
|
||||
for k,v in ipairs(tm) do
|
||||
ss=ss..'"'..v..'",'
|
||||
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
|
||||
for k,v in pairs(ts) do
|
||||
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