+# ---------------------------------------------------------------------
+#
+# 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 ]
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"
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)"
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"
case $i in
0)
-
+
# Do it, while we are under user, not under root! # JPR
if [ -f $HOME/.bashrc ]
then
read a # just to let the user time enough to read the message...
fi
fi
-
+
clear
suitable=XXX
#ls -l scripts/CreaTools-configure.sh
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
docgeneration="OFF"
fi
echo "you said : [" $docgeneration "]"
- done
- echo
- echo
+ done
+ echo
+ echo
fi
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
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
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"
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
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
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 "==>"
echo "==>"
source $ETC_BASHRC
read a
- kill -9 $PPID
;;
1.0)
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)
#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
;;
done
+