Made the build system accept --cfgfile and --modfile
Also added a dir of example configs. This contributes to #1.
This commit is contained in:
parent
50ca1050b1
commit
a77d0c6356
5
build-production.cfg
Normal file
5
build-production.cfg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
optimise yes
|
||||||
|
listmods no
|
||||||
|
test yes
|
||||||
|
log yes
|
||||||
|
opath kernel.lua
|
13
build.lua
13
build.lua
@ -19,10 +19,19 @@ end
|
|||||||
print("Initializing and reading configuration")
|
print("Initializing and reading configuration")
|
||||||
ts={}
|
ts={}
|
||||||
tA = {...}
|
tA = {...}
|
||||||
|
for k,v in ipairs(tA) do
|
||||||
|
if type(v) == "string" then
|
||||||
|
if v:sub(1,10) == "--cfgfile=" then
|
||||||
|
cfgfile = v:sub(11)
|
||||||
|
elseif v:sub(1,10) == "--modfile=" then
|
||||||
|
modfile = v:sub(11)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
ss=""
|
ss=""
|
||||||
|
cfgfile = cfgfile or "build.cfg"
|
||||||
|
modfile = modfile or "modules.cfg"
|
||||||
cfg={}
|
cfg={}
|
||||||
cfgfile = tA[1] or "build.cfg"
|
|
||||||
modfile = tA[2] or "modules.cfg"
|
|
||||||
f=io.open(cfgfile,"rb")
|
f=io.open(cfgfile,"rb")
|
||||||
repeat
|
repeat
|
||||||
line = f:read("*l")
|
line = f:read("*l")
|
||||||
|
14
configs/desktop.cfg
Normal file
14
configs/desktop.cfg
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
base/header.lua
|
||||||
|
drivers/dterm.lua
|
||||||
|
library/print.lua
|
||||||
|
drivers/keyboard.lua
|
||||||
|
library/net.lua
|
||||||
|
library/fs-min.lua
|
||||||
|
library/fs-std.lua
|
||||||
|
library/fs-ext.lua
|
||||||
|
util/fs-automount.lua
|
||||||
|
applications/shutil.lua
|
||||||
|
applications/evproxy-srv.lua
|
||||||
|
applications/evproxy-client.lua
|
||||||
|
applications/luash.lua
|
||||||
|
base/footer.lua
|
4
configs/minimal-net-rexec.cfg
Normal file
4
configs/minimal-net-rexec.cfg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
base/header.lua
|
||||||
|
library/net.lua
|
||||||
|
applications/rexec.lua
|
||||||
|
base/footer.lua
|
3
configs/minimal-net.cfg
Normal file
3
configs/minimal-net.cfg
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
base/header.lua
|
||||||
|
library/net.lua
|
||||||
|
base/footer.lua
|
2
configs/minimal.cfg
Normal file
2
configs/minimal.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
base/header.lua
|
||||||
|
base/footer.lua
|
@ -8,5 +8,7 @@ library/fs-std.lua
|
|||||||
library/fs-ext.lua
|
library/fs-ext.lua
|
||||||
util/fs-automount.lua
|
util/fs-automount.lua
|
||||||
applications/shutil.lua
|
applications/shutil.lua
|
||||||
|
applications/evproxy-srv.lua
|
||||||
|
applications/evproxy-client.lua
|
||||||
applications/luash.lua
|
applications/luash.lua
|
||||||
base/footer.lua
|
base/footer.lua
|
||||||
|
Loading…
Reference in New Issue
Block a user