2019-11-05 14:06:19 +11:00
|
|
|
#!/bin/sh
|
|
|
|
rm -r target/*
|
2019-11-09 14:23:18 +11:00
|
|
|
mkdir target &>/dev/null
|
2019-11-05 14:06:19 +11:00
|
|
|
lua luapreproc.lua module/init.lua target/init.lua
|
2020-03-18 01:11:53 +11:00
|
|
|
echo _OSVERSION=\"PsychOS 2.0a2-$(git rev-parse --short HEAD)\" > target/version.lua
|
2019-11-06 14:01:10 +11:00
|
|
|
cat target/version.lua target/init.lua > target/tinit.lua
|
|
|
|
mv target/tinit.lua target/init.lua
|
2020-03-20 13:16:22 +11:00
|
|
|
cp -r service/ lib/ cfg/ target/
|
2019-11-06 14:08:42 +11:00
|
|
|
lua finddesc.lua $(find module/ -type f) $(find lib/ -type f) > apidoc.md
|
2020-03-18 14:02:58 +11:00
|
|
|
rm target/version.lua
|