Files
Sourcetrail/script/build.sh
T
Eberhard Graether 503ca76a40 ui: Use window decorations on dialog windows (issue #376)
* added SubWindow flag to QtWindow to either use window decorations or show window within main window
* fixes black borders in some Linux window managers

bug id = 376

fortune cookie message = Your skill will accomplish what the force of many others cannot.
2017-06-07 14:40:16 +02:00

48 lines
964 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" ] || [ "$1" = "" ]
then
if [ "$2" = "test" ]
then
#echo "release test"
cd build/Release/test/ && ./Sourcetrail_test
elif [ "$2" = "keygen" ]
then
#echo "release keygen"
cd build/Release/license_generator && ./Sourcetrail_license_generator
else
#echo "release app"
cd build/Release/app && ./Sourcetrail
fi
elif [ "$1" = "debug" ] || [ "$1" = "d" ]
then
if [ "$2" = "test" ]
then
#echo "debug test"
cd build/Debug/test && ./Sourcetrail_test
elif [ "$2" = "keygen" ]
then
#echo "debug keygen"
cd build/Debug/license_generator && ./Sourcetrail_license_generator
else
#echo "debug app"
cd build/Debug/app && ./Sourcetrail
fi
else
echo "no arguments: first argument 'release' or 'debug', second argument 'test' for tests"
fi