Skip to content
Snippets Groups Projects
Commit 163e1f92 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Update the duneproject script to ask the user whether to use all flags

This propbably the best spot to safe the user from himself!
parent 23d0da3d
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,9 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do ...@@ -225,6 +225,9 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do
while [ -z "$MAINTAINER" ]; do while [ -z "$MAINTAINER" ]; do
read -p "4) Maintainer's email address? " MAINTAINER read -p "4) Maintainer's email address? " MAINTAINER
done 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
echo "creating Project \"$PROJECT\", version $VERSION " echo "creating Project \"$PROJECT\", version $VERSION "
...@@ -238,6 +241,7 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do ...@@ -238,6 +241,7 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do
DEPENDENCIES="" DEPENDENCIES=""
VERSION="" VERSION=""
MAINTAINER="" MAINTAINER=""
ENABLE_ALL=""
fi fi
done done
...@@ -494,7 +498,13 @@ include(DuneMacros) ...@@ -494,7 +498,13 @@ include(DuneMacros)
# start a dune project with information from dune.module # start a dune project with information from dune.module
dune_project() 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("src")
add_subdirectory("m4") add_subdirectory("m4")
add_subdirectory("dune") add_subdirectory("dune")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment