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/*
|
2020-03-28 09:31:49 +11:00
|
|
|
mkdir -p code/data/app-claw
|
2018-06-12 10:27:26 +10:00
|
|
|
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"?
|
2020-03-30 08:43:38 +11:00
|
|
|
cd code
|
|
|
|
tar --mtime=0 --owner=gray:0 --group=mann:0 -cf ../code.tar .
|
|
|
|
cd ..
|
2018-06-12 10:51:19 +10:00
|
|
|
|
|
|
|
# Solely for ensuring that a -gold.lua file can be checked before being pushed to repository.
|
2020-03-30 08:43:38 +11:00
|
|
|
echo -n "-- KOSNEO inst. " > inst.lua
|
2018-06-12 10:51:19 +10:00
|
|
|
git status --porcelain=2 --branch | grep branch.oid >> inst.lua
|
2020-03-30 08:43:38 +11:00
|
|
|
echo "-- This is released into the public domain." >> inst.lua
|
|
|
|
echo "-- No warranty is provided, implied or otherwise." >> inst.lua
|
|
|
|
|
|
|
|
# The Installer Creator
|
|
|
|
cd inst
|
|
|
|
lua build.lua $1 ../code.tar >> ../inst.lua
|
|
|
|
cd ..
|
2018-03-30 22:36:48 +11:00
|
|
|
|
2018-07-29 00:00:30 +10:00
|
|
|
# Common Repository Setup Code
|
|
|
|
./package-repo.sh inst.lua
|