#!/bin/ash base=xonotic-data.pk3dir : ${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} echo "Compiled successfully!"; mkdir -vp $(dirname "$0")/compiled mv -v *.dat $(dirname "$0")/compiled rm *.lno zip -9 compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat