2018-03-19 12:27:30 +11:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This is released into the public domain.
|
|
|
|
# No warranty is provided, implied or otherwise.
|
|
|
|
|
2018-06-12 10:27:26 +10:00
|
|
|
rm code/data/app-claw/*
|
|
|
|
lua claw/clawconv.lua code/data/app-claw/ < claw/code-claw.lua > /dev/null
|
2018-03-22 13:33:52 +11:00
|
|
|
rm code.tar
|
|
|
|
# Hey, look behind you, there's nothing to see here.
|
|
|
|
# ... ok, are they seriously all named "Mann"?
|
|
|
|
tar --owner=gray:0 --group=mann:0 -cf code.tar code
|
2018-06-10 09:06:12 +10:00
|
|
|
lua heroes.lua `wc -c code.tar` | lua com2/bonecrunch.lua > inst.lua
|
2018-04-25 10:04:34 +10:00
|
|
|
echo -n "--[[" >> inst.lua
|
|
|
|
cat com2/code.tar.bd >> inst.lua
|
|
|
|
echo -n "]]" >> inst.lua
|
2018-03-30 22:36:48 +11:00
|
|
|
|
2018-06-12 10:27:26 +10:00
|
|
|
stat repobuild/data/app-claw && rm -rf repobuild
|
2018-03-30 22:36:48 +11:00
|
|
|
mkdir repobuild
|
|
|
|
cp -r code/* repobuild/
|
|
|
|
cp -r repository/* repobuild/
|
|
|
|
cp inst.lua repobuild/
|
2018-06-12 10:27:26 +10:00
|
|
|
lua claw/clawconv.lua repobuild/data/app-claw/ < claw/code-claw.lua > repobuild/data/app-claw/local.c2l
|
|
|
|
lua claw/clawconv.lua repobuild/data/app-claw/ < claw/repo-claw.lua >> repobuild/data/app-claw/local.c2l
|