]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/ThirdParty-install-Finalize.sh
re-indent + some fixes.
[creaToolsTools.git] / Linux / scripts / ThirdParty-install-Finalize.sh
index 06f77fc195c33487cc9c5e4f82b70b5a824cdc6b..b1e24bafc7b4039238897fe4865380e6f9625ac4 100644 (file)
@@ -15,6 +15,7 @@
 fi
 
 source $PWD/scripts/CreaTools-configure.sh
+echo "=================================== in ThirdParty-install-Finalize.sh ETC_BASHRC : " $ETC_BASHRC
 
 # /// \TODO move theese ones upper in the process!  JPR
 
@@ -45,36 +46,38 @@ echo export TTH=$installPrefixThird/bin/tth                >> $installPrefixThir
 
 if [ $OperatingSystem = "MacOS" ]
 then
-echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$GDCM_DIR   >> $installPrefixThird/share/creatools_third_party_library_config.sh
-echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$ITK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
-echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$VTK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
+   echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$GDCM_DIR   >> $installPrefixThird/share/creatools_third_party_library_config.sh
+   echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$ITK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
+   echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$VTK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
 else
-echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$GDCM_DIR   >> $installPrefixThird/share/creatools_third_party_library_config.sh
-echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$ITK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
-echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
+   echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$GDCM_DIR   >> $installPrefixThird/share/creatools_third_party_library_config.sh
+   echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$ITK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
+   echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
 fi
 
-  case "$OperatingSystem" in
-  Fedora)
-     export ETC_BASHRC=$HOME/.bashrc
-     ;;
-  Ubuntu)
-     export ETC_BASHRC=$HOME/.bashrc
-     ;;
-  MacOS)
-     export ETC_BASHRC=$HOME/.profile
-     ;;
-  esac
+#                                 done in scripts/CreaTools-configure.sh // JPR
+#  case "$OperatingSystem" in
+#  Fedora)
+#     export ETC_BASHRC=$HOME/.bashrc
+#     ;;
+#  Ubuntu)
+#     export ETC_BASHRC=$HOME/.bashrc
+#     ;;
+#  MacOS)
+#     export ETC_BASHRC=$HOME/.profile
+#     ;;
+#  esac
 
    sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
    sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
 
 
 # - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
+
+echo "====================================================ETC_BASHRC "  $ETC_BASHRC 
 echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
 echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] &&  source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC 
 
-echo "====================================================ETC_BASHRC "  $ETC_BASHRC 
 
 chown -R $loginUserName  $generationdir
 chgrp -R $loginGroupName $generationdir