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
This commit is contained in:
Andreas Stallinger
2016-03-30 15:49:08 +02:00
parent fe74dfb7cc
commit 03901e8173
19 changed files with 104 additions and 78 deletions
+7 -2
View File
@@ -3,11 +3,16 @@
# Determine path to script
MY_PATH=`dirname "$0"`
# build target
$MY_PATH/buildonly.sh $@
if [ $? -ne 0 ]
then
exit 1;
fi
cd $MY_PATH/..
# Build and run target
# run target
if [ "$1" = "release" ] || [ "$1" = "r" ]
then
@@ -38,7 +43,7 @@ then
elif [ "$2" = "keygen" ]
then
#echo "debug keygen"
cd bin/license_generator && Debug/Coati_license_generator_d
cd bin/license_generator && Debug/Coati_license_generator
else
#echo "debug app"
cd bin/app && Debug/Coati
+5 -2
View File
@@ -55,8 +55,11 @@ if [ $PLATFORM == "Windows" ]; then
cmd //c 'mklink /d /j '.$MY_PATH.'\..\bin\app\Release\user '.$MY_PATH.'\..\bin\app\user' &
elif [ $PLATFORM == "Linux" ]; then
echo -e $INFO "create symbolic links for data"
ln -sr bin/app/data bin/app/Release/data
ln -sr bin/app/data bin/app/Debug/data
cd bin/app/Release
ln -s ../data data
cd ../Debug
ln -s ../data data
cd ../../..
fi
# Setup both Debug and Release configuration