Skip to content

Commit

Permalink
Fix automatic configuration.
Browse files Browse the repository at this point in the history
Add new variable build_MQOnly in script for automatic configuration.
Check if the new variable exists and is either yes or no.
  • Loading branch information
fuhlig1 authored and MohammadAlTurany committed May 2, 2018
1 parent 4ee9648 commit d8579e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions automatic.conf
Expand Up @@ -6,4 +6,5 @@
build_root6=yes
build_python=no
install_sim=yes
build_MQOnly=no
SIMPATH_INSTALL=$PWD/installation
8 changes: 8 additions & 0 deletions scripts/functions.sh
Expand Up @@ -240,6 +240,14 @@ function check_variables {
else
check_yes_no install_sim
fi
if [ "$build_MQOnly" = "" ]; then
echo "*** It is not defined in the input file if only the FairMQ toolchain should be installed."
echo "*** Please add the missing definition in the input file."
echo "*** e.g.: build_MQOnly=[no/yes]"
exit 1
else
check_yes_no build_MQOnly
fi
if [ "$SIMPATH_INSTALL" = "" ]; then
echo "*** No installation directory is defined in the input file."
echo "*** Please add the missing definition in the input file."
Expand Down

0 comments on commit d8579e1

Please sign in to comment.