X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fmenu.sh;h=2d1dbd41cf0fbd967acc5e962cba35349f982502;hb=92e2861847038124e273a60c80c9a85a821e9a55;hp=618a633fa0875960c59c8a5c72d0380150422cb1;hpb=87c77aeffdac15c0f3386a9e0ce7d4769825c7d8;p=creaToolsTools.git diff --git a/Linux/menu.sh b/Linux/menu.sh index 618a633..2d1dbd4 100644 --- a/Linux/menu.sh +++ b/Linux/menu.sh @@ -1,3 +1,27 @@ +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Santé) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# ------------------------------------------------------------------------ + + #!/bin/bash -e if [ -f scripts/CreaTools-configure.sh ] @@ -15,6 +39,9 @@ do echo echo " MENU" echo + echo " This MENU is deprecated." + echo " Please use installscipt instead." + echo echo " Choose what you want to do :" echo echo " Configure :........................0" @@ -26,6 +53,7 @@ do echo " Get, Compile, Install vtk .......1.1" echo " Get, Compile, Install gdcm :.. . .1.2" echo " Get, Compile, Install itk :.......1.3" + echo " Get, Compile, Install Wx (for Mac Users) :…....1.4" else echo " Install Third Party Libraries :....1 (as root)" @@ -33,7 +61,7 @@ do if [ $expanded = "YES" ] then - echo " Get the 'CreaTools' source files :.2.1 (CVS : as user!)" + echo " Get the 'CreaTools' source files :.2.1 (GIT : as user!)" echo " Compile the CreaTools :..........2.2" # Install creatools as user (no longer as root) // JPR 2/5/2011 echo " Install the CreaTools :..........2.3" @@ -60,7 +88,7 @@ do case $i in 0) - + # Do it, while we are under user, not under root! # JPR if [ -f $HOME/.bashrc ] then @@ -75,7 +103,7 @@ do read a # just to let the user time enough to read the message... fi fi - + clear suitable=XXX #ls -l scripts/CreaTools-configure.sh @@ -101,7 +129,7 @@ do then echo WARNING echo "the curently used Third Party libraries are NOT in $installPrefixThird but ... in :" - grep "installPrefixThird=" $ETC_BASHRC + grep "installPrefixThird=" $ETC_BASHRC echo "VTK_DIR : " $VTK_DIR echo "ITK_DIR : " $ITK_DIR echo "GDCM_DIR : " $GDCM_DIR @@ -210,9 +238,9 @@ then docgeneration="OFF" fi echo "you said : [" $docgeneration "]" - done - echo - echo + done + echo + echo fi docgeneration="OFF" @@ -220,13 +248,13 @@ docgeneration="OFF" # ------------------ sourcesFrom="___" - while [[ "$sourcesFrom" != "CVS" && "$sourcesFrom" != "HTML" ]] + while [[ "$sourcesFrom" != "GIT" && "$sourcesFrom" != "HTML" ]] do - echo "Where do you want to get source files from : CVS/HTML ( CVS : for registered CREATIS users only! )" + echo "Where do you want to get source files from : GIT/HTML ( GIT : for registered CREATIS users only! )" read sourcesFrom if [ "$sourcesFrom" = "" ] then - sourcesFrom="CVS" + sourcesFrom="GIT" fi echo "you said : [" $sourcesFrom "]" done @@ -234,17 +262,17 @@ docgeneration="OFF" echo # ------------------ - cvsUserName="" - if [ "$sourcesFrom" = "CVS" ] + gitUserName="" + if [ "$sourcesFrom" = "GIT" ] then - while [ "$cvsUserName" == "" ] + while [ "$gitUserName" == "" ] do - echo "CVS User Name ( registered CREATIS user : mandatory!)" - read cvsUserName + echo "GIT User Name ( registered CREATIS user : mandatory!)" + read gitUserName done - echo "you said : [" $cvsUserName "]" + echo "you said : [" $gitUserName "]" else - cvsUserName="ForgetThisOne" + gitUserName="ForgetThisOne" fi echo echo @@ -328,9 +356,9 @@ docgeneration="OFF" echo " Install Prefix for CreaTools : $installPrefix" echo " Boolean for Doc Generation : $docgeneration" echo " Where do you want to get source files from : $sourcesFrom" - if [ $sourcesFrom = CVS ] + if [ $sourcesFrom = GIT ] then - echo " CVS User Name : $cvsUserName" + echo " GIT User Name : $gitUserName" fi echo " Login User Name : $loginUserName" echo " Login Group Name : $loginGroupName" @@ -366,7 +394,7 @@ docgeneration="OFF" echo "installPrefixThird=$installPrefixThird" >> $configureFile echo "docgeneration=$docgeneration" >> $configureFile echo "sourcesFrom=$sourcesFrom" >> $configureFile - echo "cvsUserName=$cvsUserName" >> $configureFile + echo "gitUserName=$gitUserName" >> $configureFile echo "loginUserName=$loginUserName" >> $configureFile echo "loginGroupName=$loginGroupName" >> $configureFile echo "buildType=$buildType" >> $configureFile @@ -379,9 +407,7 @@ docgeneration="OFF" fi ;; - 1) - echo "===================================at begin 1) ======ETC_BASHRC : " $ETC_BASHRC - read a + 1) echo "========================== 1 " source scripts/Check-if-root.sh bash scripts/ThirdParty-install-Base-Stuff.sh @@ -389,20 +415,19 @@ docgeneration="OFF" bash scripts/ThirdParty-install-gdcm.sh bash scripts/ThirdParty-install-ITK.sh bash scripts/ThirdParty-install.sh - bash scripts/ThirdParty-install-Finalize.sh - echo "===================================after ThirdParty-install-Finalize.sh ======ETC_BASHRC : " $ETC_BASHRC + bash scripts/ThirdParty-install-Finalize.sh - if [ "$sourcesFrom" = "CVS" ] + if [ "$sourcesFrom" = "GIT" ] then echo "----------------------------------------------------------------------" echo OK echo "To go on, run again 'bash menu.sh' as '$loginUserName', in a new window" - echo "---------------------------------------------------------------------" + echo "----------------------------------------------------------------------" else echo "----------------------------------------------------------------------" echo OK echo "To go on, run again 'bash menu.sh' in a new window" - echo "---------------------------------------------------------------------" + echo "----------------------------------------------------------------------" fi echo echo "==>" @@ -410,7 +435,6 @@ docgeneration="OFF" echo "==>" source $ETC_BASHRC read a - kill -9 $PPID ;; 1.0) @@ -424,8 +448,7 @@ docgeneration="OFF" echo "========================== 1.1 " #source scripts/Check-if-root.sh bash scripts/ThirdParty-install-VTK.sh - bash scripts/ThirdParty-install-Finalize.sh - read a + bash scripts/ThirdParty-install-Finalize.sh ;; 1.2) @@ -440,6 +463,12 @@ docgeneration="OFF" #source scripts/Check-if-root.sh bash scripts/ThirdParty-install-ITK.sh bash scripts/ThirdParty-install-Finalize.sh + ;; + 1.4) + echo "========================== 1.4 " + #source scripts/Check-if-root.sh + bash scripts/ThirdParty-install-WX.sh + bash scripts/ThirdParty-install-Finalize.sh read a ;; @@ -613,3 +642,4 @@ docgeneration="OFF" done +