fixed build script segfault

This commit is contained in:
Václav Šmejkal 2022-05-13 18:46:30 +02:00
parent 1c737fc183
commit 8208f02866

View File

@ -104,18 +104,6 @@ runInstall()
exit 1 exit 1
fi fi
###
echo "Compiling why2-app..."
###
runApp
###
echo "Installing why2-app..."
###
mv $appOutput /usr/bin/why2
### ###
echo "Finished! Cleaning up..." echo "Finished! Cleaning up..."
### ###
@ -125,6 +113,10 @@ runInstall()
runApp() runApp()
{ {
###
echo "Compiling why2-app..."
###
### ###
echo "Using '$compiler' as default compiler." echo "Using '$compiler' as default compiler."
### ###
@ -153,6 +145,16 @@ runApp()
### ###
echo "Output generated as '$appOutput'" echo "Output generated as '$appOutput'"
### ###
###
echo "Installing why2-app..."
###
mv $appOutput /usr/bin/why2
###
echo "Finished!"
###
} }
if [[ "$1" == "test" ]]; then ########## TEST ########## if [[ "$1" == "test" ]]; then ########## TEST ##########
@ -163,6 +165,7 @@ elif [[ "$1" == "app" ]]; then ########## BUILD APP ##########
runApp "$2" runApp "$2"
else ########## ELSE ########## else ########## ELSE ##########
if [[ "$1" == "installTest" ]]; then ########## INSTALL & TEST ########## if [[ "$1" == "installTest" ]]; then ########## INSTALL & TEST ##########
exit 69
runInstall runInstall
runTest runTest
else ########## ERR ########## else ########## ERR ##########