integrated Build Script
This commit is contained in:
parent
acf4e709b2
commit
12763017c2
1 changed files with 18 additions and 0 deletions
18
build.sh
Normal file
18
build.sh
Normal 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
|
Loading…
Reference in a new issue