2018-05-24 08:35:05 +10:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This is released into the public domain.
|
|
|
|
# No warranty is provided, implied or otherwise.
|
|
|
|
|
2018-07-29 00:00:30 +10:00
|
|
|
# Package repository using supplied inst.lua (use inst-gold.lua for repository branch)
|
|
|
|
|
2020-03-28 09:31:49 +11:00
|
|
|
# this is a guard check to avoid removing repobuild if it's blatantly
|
|
|
|
# not the actual repobuild directory (this is an rm -rf after all)
|
|
|
|
stat repobuild/data/app-claw 1>/dev/null 2>/dev/null && rm -rf repobuild
|
|
|
|
|
|
|
|
mkdir -p repobuild
|
2018-05-24 08:35:05 +10:00
|
|
|
cp -r code/* repobuild/
|
|
|
|
cp -r repository/* repobuild/
|
2018-07-29 00:00:30 +10:00
|
|
|
cp $1 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
|