integrated Build Script

This commit is contained in:
Alex 2023-08-19 23:01:22 +02:00
parent acf4e709b2
commit 12763017c2

18
build.sh Normal file
View file

@ -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