build_game.sh: Allow parameter to specify a game you wish to build with map

defs.
This commit is contained in:
Marco Cawthorne 2021-03-09 11:40:17 +01:00
parent f8798d6084
commit 17baf470fe
1 changed files with 11 additions and 0 deletions

View File

@ -3,7 +3,18 @@ set -e
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
if [ -f "$SCRPATH"/bin/fteqcc ]; then
# We want to compile a specific game
if [ $# -gt 0 ]; then
cd "$SCRPATH/$1"/src
make
cd "$SCRPATH"
./make_mapdef.sh "$1"
exit 0
fi
export OLDDIR=$(pwd)
cd ./src
make