Files
Sourcetrail/script/buildonly.sh
T
Andreas Stallinger ebddfaaa32 build: 32 bit linux ci
* in vector testsuite replaced EQUAL with DELTA for float comparison
* on linux use appsettings for testing
* botan deprecated warning
* template error in cxxtest
2016-12-09 12:03:05 +01:00

50 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -e
# Determine path to script
MY_PATH=`dirname "$0"`
cd $MY_PATH/..
# Build target
if [ "$1" = "release" ] || [ "$1" = "r" ] || [ "$1" = "" ]
then
if [ "$2" = "test" ]
then
#echo "release test"
cmake --build build/Release --target Coati_test
elif [ "$2" = "keygen" ]
then
#echo "release keygen"
cmake --build build/Release --target Coati_license_generator
else
#echo "release app"
cmake --build build/Release --target Coati
fi
elif [ "$1" = "debug" ] || [ "$1" = "d" ]
then
if [ "$2" = "test" ]
then
#echo "debug test"
cmake --build build/Debug --target Coati_test
elif [ "$2" = "keygen" ]
then
#echo "debug keygen"
cmake --build build/Debug --target Coati_license_generator
else
#echo "debug app"
cmake --build build/Debug --target Coati
fi
elif [ "$1" = "package" ] || [ "$1" = "p" ]
then
cmake --build build/Release --target package
mkdir -p distr && mv build/Release/Coati*.tar.gz distr #&& cp build/Release/Coati*.deb distr
echo "Packages copied into the distr folder"
elif [ "$1" = "all" ] || [ "$1" = "a" ]
then
cmake --build build/Release --target all
else
echo "no arguments: first argument 'release' or 'debug', second argument 'test' for tests"
fi