From c376e01926059fa74eb138b817768e103c48ab13 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 11 Jan 2011 18:26:50 +0000 Subject: [PATCH] Allow reusing scripts/CreaTools-configure.sh --- Linux/README.txt | 5 +++-- Linux/menu.sh | 29 +++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Linux/README.txt b/Linux/README.txt index 0e6e39c..8332bdc 100644 --- a/Linux/README.txt +++ b/Linux/README.txt @@ -19,8 +19,9 @@ You will be prompted to give your preferences : "Boolean for Doc Generation : YES/NO (default is NO)" "Where do you want to get source files from : CVS/HTML (default is HTML)" -> if you choosed CVS -"CVS User Name (mandatory!)" -"LINUX/MacOS User Name (mandatory!)" +"CVS User name (mandatory!)" +"Login 'User' name (mandatory!)" +"Login 'Group' name (mandatory!)" "Build type : Release/Debug (default is Release)" "Gdcm version : GDCM1/GDCM2 (default is GDCM1)" diff --git a/Linux/menu.sh b/Linux/menu.sh index 5918a29..618c702 100644 --- a/Linux/menu.sh +++ b/Linux/menu.sh @@ -41,6 +41,30 @@ read i case $i in 0) + suitable=XXX + ls -l scripts/CreaTools-configure.sh + if [ -f scripts/CreaTools-configure.sh ] + then + while [[ "$suitable" != "YES" && \ + "$suitable" != "NO" ]] + do + echo "'Configure' already done : " + echo "------------------------" + more scripts/CreaTools-configure.sh + echo "------------------------" + echo "Are the following values suitable for you : YES/NO (default is YES)?" + read suitable + if [ "$suitable" = "" ] + then + $suitable="YES" + fi + done + else + $suitable="NO" + fi + + if [ "$suitable" = "NO" ] + then echo echo confirm="NO" @@ -203,8 +227,7 @@ echo echo echo "Do you confirm your choices : YES/NO ? (default is NO)" read confirm -done - +done # GROS SOUCIS : Ou creer le fichier CreaTools-configure.sh? # dans $generationdir/creatools_bin ? @@ -233,6 +256,8 @@ echo "gdcmVersion=$gdcmVersion" >> $configureFile # ------------------ +# endif 'suitable' +fi ;; 1) -- 2.45.1