diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..3b32e34 --- /dev/null +++ b/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +clear +declare 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} +tput bold; tput setaf 2; echo "Compiled successfully!"; tput sgr0 +mkdir -vp $(dirname "$0")/compiled +mv -v *.lno $(dirname "$0")/compiled +mv -v *.dat $(dirname "$0")/compiled \ No newline at end of file