Files
Sourcetrail/script/build.sh
T
Andreas Stallinger 03901e8173 logic: Test License is valid on day 0
* License was invalid on expire date
* build script does not start app after failing build
* symlink on linux
2016-03-30 15:49:08 +02:00

54 lines
1018 B
Bash
Executable File

#!/bin/bash
# Determine path to script
MY_PATH=`dirname "$0"`
# build target
$MY_PATH/buildonly.sh $@
if [ $? -ne 0 ]
then
exit 1;
fi
cd $MY_PATH/..
# run target
if [ "$1" = "release" ] || [ "$1" = "r" ]
then
if [ "$2" = "test" ]
then
#echo "release test"
cd bin/test && Release/Coati_test
elif [ "$2" = "trial" ]
then
cd bin/app && Release/Coati_trial
elif [ "$2" = "keygen" ]
then
#echo "release keygen"
cd bin/license_generator && Release/Coati_license_generator
else
#echo "release app"
cd bin/app && Release/Coati
fi
elif [ "$1" = "debug" ] || [ "$1" = "d" ]
then
if [ "$2" = "test" ]
then
#echo "debug test"
cd bin/test && Debug/Coati_test
elif [ "$2" = "trial" ]
then
cd bin/app && Debug/Coati_trial
elif [ "$2" = "keygen" ]
then
#echo "debug keygen"
cd bin/license_generator && Debug/Coati_license_generator
else
#echo "debug app"
cd bin/app && Debug/Coati
fi
else
echo "no arguments: first argument 'release' or 'debug', second argument 'test' for tests"
fi