From 163e1f92e0c68baabdabb0369fab98001903ef1a Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.r.kempf@gmail.com> Date: Thu, 22 Jan 2015 17:55:35 +0100 Subject: [PATCH] Update the duneproject script to ask the user whether to use all flags This propbably the best spot to safe the user from himself! --- bin/duneproject | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/duneproject b/bin/duneproject index 66ff86471..103d413b6 100755 --- a/bin/duneproject +++ b/bin/duneproject @@ -225,6 +225,9 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do while [ -z "$MAINTAINER" ]; do read -p "4) Maintainer's email address? " MAINTAINER done + while [ "$ENABLE_ALL" != "y" -a "$ENABLE_ALL" != "Y" ]; do + read -p "5) Enable all found packages? (WE strongly recommend yes, unless you know exactly what you are doing) [y/N]" ENABLE_ALL + done echo echo "creating Project \"$PROJECT\", version $VERSION " @@ -238,6 +241,7 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do DEPENDENCIES="" VERSION="" MAINTAINER="" + ENABLE_ALL="" fi done @@ -494,7 +498,13 @@ include(DuneMacros) # start a dune project with information from dune.module dune_project() - +M_DELIM +if test ! -z "$ENABLE_ALL"; then +cat>> "$PROJECT/CMakeLists.txt" << M_DELIM +dune_enable_all_packages() +M_DELIM +fi +cat>> "$PROJECT/CMakeLists.txt" << M_DELIM add_subdirectory("src") add_subdirectory("m4") add_subdirectory("dune") -- GitLab