build_game.sh: Run make for menu/plugins and check if the level-editor is present before calling make_mapdef.sh
This commit is contained in:
parent
7dcebd140d
commit
8b4cd6b8c7
1 changed files with 6 additions and 0 deletions
|
@ -5,13 +5,19 @@ PATH="$SCRPATH"/bin:"$PATH"
|
|||
|
||||
if [ -f "$SCRPATH"/bin/fteqcc ]; then
|
||||
export OLDDIR=$(pwd)
|
||||
cd ./src
|
||||
make
|
||||
cd "$OLDDIR"
|
||||
|
||||
find "$SCRPATH" -name Makefile | grep 'src\/Makefile' | grep -v engine | while read MFILE_N; do
|
||||
cd $(dirname $MFILE_N)
|
||||
make
|
||||
cd ..
|
||||
export GAMEDIR=$(basename $PWD)
|
||||
cd $OLDDIR
|
||||
if [ -f "$SCRPATH"/bin/worldspawn ]; then
|
||||
./make_mapdef.sh $GAMEDIR
|
||||
fi
|
||||
done;
|
||||
else
|
||||
printf "FTEQCC compiler is not present, please run build_engine.sh\n"
|
||||
|
|
Loading…
Reference in a new issue