Modified build script

dev
anulax1225 ago%!(EXTRA string=1 year)
parent 5359cdc754
commit f3036be13f
  1. 16
      build

16
build

@ -1,4 +1,7 @@
clear
echo ==================
echo [BUILDING PROJECT]
echo ==================
if [ -z ${CLEAR_BIN} ]; then
CLEAR_BIN=0
@ -8,23 +11,28 @@ if [ -z ${AUTO_EXEC} ]; then
fi
if [ 1 -eq ${CLEAR_BIN} ]; then
echo [Clearing bin/bin-int dirs]
echo Clearing bin/bin-int dirs
rm -rf bin bin-int
else
echo [Caching bin/bin-int dirs]
echo Caching bin/bin-int dirs
fi
echo [BUILDING PROJECT]
premake5 gmake2
make $1
echo ================
echo [FINISHED BUILD]
echo ================
if [ 1 -eq ${AUTO_EXEC} ]; then
config=$1
if [ -z "$config" ]; then
config="config=debug"
fi
if [ "config=debug" == "$config" ]; then
echo
echo ==============
echo [STARTING APP]
echo [Config: Debug]
echo ==============
echo Config: Debug
bin/linux-x86_64-Debug/sandbox/sandbox
elif [ "config=release" == "$config" ]; then
echo [STARTING APP]

Loading…
Cancel
Save