2023-08-19 22:57:04 +00:00
|
|
|
#!/bin/ash
|
|
|
|
base=xonotic-data.pk3dir
|
2023-08-19 21:01:22 +00:00
|
|
|
|
|
|
|
: ${PROGS_OUT:=$PWD}
|
|
|
|
export PROGS_OUT
|
|
|
|
stamp=$(date +"%s")
|
|
|
|
|
|
|
|
: ${QCC:=$PWD/gmqcc/gmqcc}
|
|
|
|
export QCC
|
|
|
|
export QCCFLAGS_WATERMARK="xonotic-$stamp"
|
|
|
|
|
|
|
|
export XONOTIC=1
|
|
|
|
make -C ${base}
|
2023-08-19 22:42:06 +00:00
|
|
|
echo "Compiled successfully!";
|
2023-08-19 21:01:22 +00:00
|
|
|
mkdir -vp $(dirname "$0")/compiled
|
2023-08-19 22:57:04 +00:00
|
|
|
mv -v *.dat $(dirname "$0")/compiled
|
|
|
|
rm *.lno
|
|
|
|
zip -9 compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|