You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
 
 
 

51 lines
1.1 KiB

clear
echo ==================
echo [BUILDING PROJECT]
echo ==================
if [ -z ${clear} ]; then
clear=0
fi
if [ -z ${exec} ]; then
exec=0
fi
if [ 1 -eq ${clear} ]; then
echo Clearing bin/bin-int dirs
rm -rf bin bin-int
else
echo Caching bin/bin-int dirs
fi
premake5 gmake
make $1
if [ $? -eq 0 ]; then
echo Compilation Success
echo ================
echo [FINISHED BUILD]
echo ================
if [ 1 -eq ${exec} ]; then
config=$1
if [ -z "$config" ]; then
config="config=debug"
fi
if [ "config=debug" == "$config" ]; then
echo
echo ==============
echo [STARTING APP]
echo ==============
echo Config: Debug
bin/linux-x86_64-Debug/sandbox/sandbox
elif [ "config=release" == "$config" ]; then
echo [STARTING APP]
echo [Config: Release]
bin/linux-x86_64-Release/sandbox/sandbox
else
echo [Aborted Launch]
echo [Config Unknown]
fi
fi
else
echo Error will compiling
fi