]> Creatis software - creaToolsTools.git/commitdiff
re - indent
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 22 Jul 2011 12:41:34 +0000 (12:41 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 22 Jul 2011 12:41:34 +0000 (12:41 +0000)
Linux/scripts/CreaTools-compile.sh
Linux/scripts/CreaTools-install.sh
Linux/scripts/CreaTools-load.sh
Linux/scripts/ThirdParty-install-Base-Stuff.sh
Linux/scripts/ThirdParty-install-Finalize.sh
Linux/scripts/ThirdParty-install.sh
Linux/scripts/ThirdParty-install_no_compile.sh

index aa10f438bba74aaf798f51ed1c3ca3bd8e31aa9e..9fbe55b5c67688f37d2f3c8c941340098cfd5f73 100644 (file)
@@ -137,12 +137,12 @@ then
    if [ true = true ]
    then
    # BBTK
-   echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
-   bash $scriptDir/cmakemod.sh               $bbtksource $generationdir $installPrefix $buildType
-   bash $scriptDir/bbtkVariables.sh          $bbtksource $generationdir $docgeneration $gdcmVersion
-   bash $scriptDir/compilemod.sh  $buildType $bbtksource $generationdir $corenumber
-   bash $scriptDir/ctestmod.sh               $bbtksource $generationdir
- fi
+     echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
+     bash $scriptDir/cmakemod.sh               $bbtksource $generationdir $installPrefix $buildType
+     bash $scriptDir/bbtkVariables.sh          $bbtksource $generationdir $docgeneration $gdcmVersion
+     bash $scriptDir/compilemod.sh  $buildType $bbtksource $generationdir $corenumber
+     bash $scriptDir/ctestmod.sh               $bbtksource $generationdir
  fi
 fi
 
 bbtkdll=$generationdir/creatools_bin/bbtkBin
index 776d170c7859a415796209e8dd236d16e494f75b..5d12ba5df8fcc4e00956088aa7920368c3a784b6 100644 (file)
   fi
   touch     $installPrefix/share/creatools_base_library_config.sh
   chmod 755 $installPrefix/share/creatools_base_library_config.sh
-
   
-  # Install creatools as user (no longer as root) // JPR 2/5/2011 
-      
+  echo export PATH='$'PATH:$installPrefix/bin                                   >> $installPrefix/share/creatools_base_library_config.sh
+  if [ $OperatingSystem = "MacOS" ]
+  then
+     echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$installPrefix/lib/creatools   >> $installPrefix/share/creatools_base_library_config.sh
+  else
+     echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools   >> $installPrefix/share/creatools_base_library_config.sh
+     echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh
+  fi
+
+  # Install creatools as user (no longer as root) // JPR 2/5/2011
+
   # - remove line 'bash $installPrefix/creatools_install/share/creatools_base_library_config.sh' if any
   sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
   sed -i -e '/installPrefixtmp*/ d' $ETC_BASHRC
@@ -78,7 +86,7 @@
   bash installmodNomake.sh $buildType wxvtk              $generationdir  $installPrefix
 
 #EED  I don't know why this works here and not after the chmod 755
-  echo export PATH='$'PATH:$installPrefix/bin                                   >> $installPrefix/share/creatools_base_library_config.sh
+echo export PATH='$'PATH:$installPrefix/bin                                   >> $installPrefix/share/creatools_base_library_config.sh
 if [ $OperatingSystem = "MacOS" ]
 then
   echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$installPrefix/lib/creatools   >> $installPrefix/share/creatools_base_library_config.sh
@@ -88,7 +96,6 @@ else
 fi
 
 echo "===================================================in CreaTools-install.sh ETC_BASHRC : "  $ETC_BASHRC 
-
 echo installPrefixtmp=$installPrefix >> $ETC_BASHRC
 echo '[ -f "$installPrefixtmp/share/creatools_base_library_config.sh" ] &&  source $installPrefixtmp/share/creatools_base_library_config.sh' >> $ETC_BASHRC 
 
index 1d9ac3b4cccffdba89666f94214133f4e56ae175..cc5bac021efafba951607b6fb92005b9767d66f5 100644 (file)
@@ -20,7 +20,7 @@
    echo --gdcmVersion--
    echo $gdcmVersion
    echo "--ETC_BASHRC--"
-   echo $ETC_BASHRC 
+   echo $ETC_BASHRC
    echo --sourcesFrom--
    echo $sourcesFrom
    echo --scriptDir--
index cdc23c98c03f0757f9dd2cf39c78562af271f4a9..dbbe81c6fe639aeb3a13ef144a033bbb6291df7c 100644 (file)
@@ -25,8 +25,8 @@ then
    mkdir $generationdir
    chown $loginUserName  $generationdir
    chgrp $loginGroupName $generationdir
-
 fi
+
 if [ ! -e $sourcesDir ]
 then
    mkdir $sourcesDir
@@ -93,13 +93,13 @@ then
      port install latex2html           -y
      port install wxGTK                -y
      port install boost                -y
-        ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
-        ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED
-        ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
-        ln -s libboost_system-xgcc40-mt-1_38.dylib     libboost_system.dylib     /opt/local/lib # cf EE 
+     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
+     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED
+     ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
+     ln -s libboost_system-xgcc40-mt-1_38.dylib     libboost_system.dylib     /opt/local/lib # cf EE 
      port install sqlite3              -y
      port install qt4-mac              -y
-        ln -s qmake-mac qmake /opt/local/bin  # cf EED
+     ln -s qmake-mac qmake /opt/local/bin  # cf EED
      port install mesa                 -y
      ;;
   *)
index 04de94d85b70da8e0a2339bf23362ba93141e731..537795e4b46ccec5214f41c6fbae658bc63b660d 100644 (file)
@@ -58,13 +58,11 @@ fi
    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 
 
-
 chown -R $loginUserName  $generationdir
 chgrp -R $loginGroupName $generationdir
index b9b32e141239f3e0067d69012f5ae44f773509c6..c06dd1e8a428ac3671cae6dda42b3ae10628c0e7 100644 (file)
@@ -53,6 +53,7 @@ then
    chown $loginUserName  $generationdir
    chgrp $loginGroupName $generationdir
 fi
+
 if [ ! -e $sourcesDir ]
 then
    mkdir $sourcesDir
@@ -82,7 +83,7 @@ then
   cd $sourcesDir
 
   if [ $OperatingSystem = "MacOS" ]
-  then   
+  then
     # curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz
     # curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
     # curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
index 16f6e5e5de2c99890980f0dbacb686b10d5501da..d0e2d8d02057dbe1d18a8737635b7ac5a8f82840 100644 (file)
@@ -74,14 +74,6 @@ else
    echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
 fi
 
-#   done in CreaTools-configure.sh JPR
-#if [ $OperatingSystem = "MacOS" ]
-#then
-#   export ETC_BASHRC=$HOME/.profile
-#else
-#   export ETC_BASHRC=$HOME/.bashrc
-#fi
-
    sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
    sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC