PREFIX=~/deal.ii-candi
JOBS=1
CMD_PACKAGES=""
-SKIP_READ=false
+USER_INTERACTION=ON
while [ -n "$1" ]; do
param="$1"
#####################################
# Assume yes to prompts
-y|--yes|--assume-yes)
- SKIP_READ=true
+ USER_INTERACTION=OFF
;;
*)
}
cls() {
- if [ ${SKIP_READ} = false ]; then
+ if [ ${USER_INTERACTION} = ON ]; then
# clear screen
COL=$1; shift
echo -e "${COL}$@\033c"
awk '/^##/ {exit} {$1=""; print}' <${PLATFORM}
echo
-# Let the user confirm now, that the PLATFORM is set up correctly
-echo "-------------------------------------------------------------------------------"
-if [ ${SKIP_READ} = false ]; then
+# If interaction is enabled, let the user confirm, that the platform is set up
+# correctly
+if [ ${USER_INTERACTION} = ON ]; then
+ echo "--------------------------------------------------------------------------------"
cecho ${GOOD} "Please make sure you've read the instructions above and your system"
cecho ${GOOD} "is ready for installing ${PROJECT}."
cecho ${BAD} "If not, please abort the installer by pressing <CTRL> + <C> !"
fi
################################################################################
-# Force the user to accept the current output
-echo "-------------------------------------------------------------------------------"
-if [ ${SKIP_READ} = false ]; then
+# If interaction is enabled, force the user to accept the current output
+if [ ${USER_INTERACTION} = ON ]; then
+ echo "--------------------------------------------------------------------------------"
cecho ${GOOD} "Once ready, hit enter to continue!"
read
fi
cecho ${WARN} "deal.II: forcing package skip for: ${PACKAGES_OFF}"
cecho ${INFO} "This is coming from your personal DEAL_II_CONFOPTS settings!"
echo
- cecho ${GOOD} "Please confirm this behaviour by pressing enter..."
- read
+
+ if [ ${USER_INTERACTION} = ON ]; then
+ cecho ${GOOD} "Please confirm this behaviour by pressing enter..."
+ read
+ fi
fi
# Check if we hit cmake-3.10+ and deal.II v8.5.1 configure error (MPI / FindMPI)