2020-05-12 05:09:41 +10:00
|
|
|
#!/bin/bash
|
|
|
|
LUA=${LUA:-lua}
|
2019-11-05 14:06:19 +11:00
|
|
|
rm -r target/*
|
2019-11-09 14:23:18 +11:00
|
|
|
mkdir target &>/dev/null
|
2020-05-12 05:09:41 +10: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/
|
2020-03-18 14:02:58 +11:00
|
|
|
rm target/version.lua
|
2020-05-12 12:01:44 +10:00
|
|
|
rm -r doc/
|
2020-05-12 12:04:47 +10:00
|
|
|
$LUA finddesc.lua doc/ $(find lib/ module/ -type f|sort)
|
2020-05-12 16:11:51 +10:00
|
|
|
pandoc doc/apidoc.md docs-metadata.yml --template=template.tex -o doc/apidoc.pdf
|