#!/bin/bash -e
-clear
i=999
while [ "$i" != 9 ]
do
+ clear
echo
echo
echo
echo
echo " Choose what you want to do :"
echo
- echo " Configure : 0 "
- echo " Install Third Party Libraries : 1 (as root)"
- echo " Get the 'CreaTools' source files : 2 (CVS : as user!)"
- echo " Compile the CreaTools : 3 "
- echo " Install the CreaTools : 4 (as root)"
- echo " Uninstall the CreaTools : 5 (as root)"
+ echo " Configure :..........................0 "
+ echo " Install Third Party Libraries :......1 (as root)"
+ echo " Get the 'CreaTools' source files :...2 (CVS : as user!)"
+ echo " Compile the CreaTools :............3 "
+ echo " Install the CreaTools :............4 (as root)"
+ echo " Uninstall the CreaTools :............5 (as root)"
echo
- echo " Exit : 9"
+ echo " Exit :...............................9"
echo
echo
echo
echo
echo
echo "You said :"
- echo " Operating System : $OperatingSystem"
- echo " Name of the Generation Directory : $generationdir"
- echo " Install Prefix for Third Party Libraries : $installPrefixThird"
- echo " Install Prefix for CreaTools : $installPrefix"
- echo " Boolean for Doc Generation : $docgeneration"
- echo " Where do you want to get source files from : $sourcesFrom"
+ echo " Operating System : $OperatingSystem"
+ echo " Name of the Generation Directory : $generationdir"
+ echo " Install Prefix for Third Party Libraries : $installPrefixThird"
+ 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 ]
then
echo " CVS User Name : $cvsUserName"
fi
- echo " Login User Name : $loginUserName"
- echo " Login Group Name : $loginGroupName"
- echo " Build type : $buildType"
- echo " Gdcm version : $gdcmVersion"
+ echo " Login User Name : $loginUserName"
+ echo " Login Group Name : $loginGroupName"
+ echo " Build type : $buildType"
+ echo " Gdcm version : $gdcmVersion"
echo
echo
echo "Do you confirm your choices : YES/NO ? (default is NO)"
1)
echo "========================== 1 "
- source scripts/Check-if-root.sh
+#EED_missing_this_file source scripts/Check-if-root.sh
sh scripts/ThirdParty-install.sh
do
echo
echo " --------------------------------"
-
- X
echo " Set VTK_DIR environment variable"
echo " --------------------------------"
echo
cd ..
fi
+
if [ true = true ]
then
libname=gdcm
# modify .bashrc
# - remove line 'sh $installPrefixThird/share/creatools_third_party_library_config.sh' if any (with accurate value for ???)
+sed -i -e '/.*installPrefixThird*/ d' /etc/bashrc
sed -i -e '/.*creatools_third_party_library_config.*/ d' /etc/bashrc
# - add line 'sh $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
-echo source $installPrefixThird/share/creatools_third_party_library_config.sh >> /etc/bashrc
-
-
-
+echo installPrefixThird=$installPrefix >> /etc/bashrc
+echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] && source $installPrefixThird/share/creatools_third_party_library_config.sh' >> /etc/bashrc
-
-# modify .bashrc
-# - remove line 'sh $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh' if any (with accurate value for ???)
-sed -i -e '/.*installPrefixCreaTools*/ d' ~/.bashrc
-sed -i -e '/.*creatools_base_library_config.*/ d' ~/.bashrc
-
-# - add line 'sh $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' (with accurate value for ???)
-echo installPrefixCreaTools=$installPrefix >> ~/.bashrc
-
-echo '[ -f "$installPrefixCreaTools/share/creatools_base_library_config.sh" ] && source $installPrefixCreaTools/share/creatools_base_library_config.sh' >> ~/.bashrc