Added some helper scripts to assist in building the engine and game.

This commit is contained in:
Marco Cawthorne 2020-11-06 17:42:44 +01:00
parent 678d7bf124
commit 8720727123
4 changed files with 48 additions and 0 deletions

2
.gitignore vendored
View File

@ -38,3 +38,5 @@ installed.lst
*.kdev4
hl2/*
*.ico
src/engine/
bin/

25
build_engine.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
set -e
FTE_MAKEFILE=./src/engine/engine/Makefile
mkdir -p ./bin
if [ -f "$FTE_MAKEFILE" ]; then
printf "Engine is present, updating...\n"
cd ./src/engine/
svn up
cd ./engine
else
printf "Engine is NOT present, cloning...\n"
cd ./src/
svn checkout https://svn.code.sf.net/p/fteqw/code/trunk engine
cd ./engine/engine
fi
make -j $(nproc) makelibs FTE_TARGET=SDL2
make -j $(nproc) m-rel FTE_TARGET=SDL2
cp -v ./release/fteqw-sdl2 ../../../bin/fteqw
make -j $(nproc) qcc-rel
cp -v ./release/fteqcc ../../../bin/fteqcc

11
build_game.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
set -e
SCRIPT_LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH="$SCRIPT_LOCATION"/bin:"$PATH"
if [ -f "$SCRIPT_LOCATION"/bin/fteqcc ]; then
cd ./src
make
else
printf "FTEQCC compiler is not present, please run build_engine.sh\n"
fi

10
nuclide Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
SCRIPT_LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH="$SCRIPT_LOCATION"/bin:"$PATH"
if [ -f "$SCRIPT_LOCATION"/bin/fteqw ]; then
fteqw -manifest valve.fmf $*
else
printf "Engine is not present, please run build_engine.sh\n"
fi