build_game.sh: Allow parameter to specify a game you wish to build with map
defs.
This commit is contained in:
parent
f8798d6084
commit
17baf470fe
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue