]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/CreaTools-compile.sh
*** empty log message ***
[creaToolsTools.git] / Linux / scripts / CreaTools-compile.sh
index e8fd9eaa58477e0b00a477940f9d6ca4447c295a..52613a67d1074905d08e87cd9faa68227491c09d 100644 (file)
@@ -23,6 +23,8 @@ fi
    echo $PWD/scripts/CreaTools-configure.sh
    echo --generationdir--
    echo $generationdir
+   echo --corenumber--
+   echo $corenumber   
    echo --docgeneration--
    echo $docgeneration
    echo --installPrefix--
@@ -33,6 +35,8 @@ fi
    echo $buildType
    echo --gdcmVersion--
    echo $gdcmVersion
+   echo "--ETC_BASHRC--"
+   echo $ETC_BASHRC
    echo --sourcesFrom--
    echo $sourcesFrom
    echo --scriptDir--
@@ -105,16 +109,22 @@ then
 # CREA
 # the following stupid test is used at debug time; Please don't remove!
 #if [ true = false ]
-if [ true = true ]
-then
- bash $scriptDir/cmakemod.sh                  $creasource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaVariables.sh             $creasource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh     $buildType $creasource $generationdir
- bash $scriptDir/ctestmod.sh                  $creasource $generationdir
+   if [ true = true ]
+   then
+      bash $scriptDir/cmakemod.sh                  $creasource $generationdir $installPrefix $buildType 
+      bash $scriptDir/creaVariables.sh             $creasource $generationdir $docgeneration
+      bash $scriptDir/compilemod.sh     $buildType $creasource $generationdir $corenumber
+      bash $scriptDir/ctestmod.sh                  $creasource $generationdir
+   fi
 fi
+creadll=$generationdir/creatools_bin/creaBin
+if [ $OperatingSystem = "MacOS" ]
+then
+    #duplicate form creaTools_name.sh?? //FCY
+    DYLD_LIBRARY_PATH=$creadll:$DYLD_LIBRARY_$PATH 
+else
+    LD_LIBRARY_PATH=$creadll:$LD_LIBRARY_$PATH
 fi
- creadll=$generationdir/creatools_bin/creaBin
- LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
  export crea_DIR=$generationdir/creatools_bin/creaBin
 
 # -------------------------
@@ -122,40 +132,55 @@ fi
 #-------------------------
 if [ $start_point -le 3 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-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
- bash $scriptDir/ctestmod.sh               $bbtksource $generationdir
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   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
 fi
+
+bbtkdll=$generationdir/creatools_bin/bbtkBin
+if [ $OperatingSystem = "MacOS" ]
+then
+    #duplicate form creaTools_name.sh?? //FCY
+    DYLD_LIBRARY_PATH=$bbtkdll:$DYLD_LIBRARY_PATH
+else
+    LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
 fi
- bbtkdll=$generationdir/creatools_bin/bbtkBin
- LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
- export BBTK_DIR=$generationdir/creatools_bin/bbtkBin
+export BBTK_DIR=$generationdir/creatools_bin/bbtkBin
 
 # -------------------------
 #        start_point =  4 : creaMaracasVisu
 #-------------------------
 if [ $start_point -le 4 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-# creaMaracasVisu
- bash $scriptDir/cmakemod.sh              $creamaracassource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaMaracasVariables.sh  $creamaracassource $generationdir $docgeneration
bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir
- bash $scriptDir/ctestmod.sh              $creamaracassource $generationdir
-fi
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+      # creaMaracasVisu
     bash $scriptDir/cmakemod.sh              $creamaracassource $generationdir $installPrefix $buildType 
     bash $scriptDir/creaMaracasVariables.sh  $creamaracassource $generationdir $docgeneration
     bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir $corenumber
     bash $scriptDir/ctestmod.sh              $creamaracassource $generationdir
+   fi
 fi
  creamaracasdll=$generationdir/creatools_bin/creaMaracasVisuBin
- LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
+
+if [ $OperatingSystem = "MacOS" ]
+then
+    #duplicate form creaTools_name.sh?? //FCY
+    DYLD_LIBRARY_PATH=$creamaracasdll:$DYLD_LIBRARY_$PATH
+else
+    LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_$PATH
+fi 
  export creaMaracasVisu_DIR=$generationdir/creatools_bin/creaMaracasVisuBin
 
 # -------------------------
@@ -163,19 +188,27 @@ fi
 #-------------------------
 if [ $start_point -le 5 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-# creaEnvironment
- bash $scriptDir/cmakemod.sh                 $creaenvironmentsource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType    $creaenvironmentsource $generationdir
- bash $scriptDir/ctestmod.sh                 $creaenvironmentsource $generationdir
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+   # creaEnvironment
+      bash $scriptDir/cmakemod.sh                 $creaenvironmentsource $generationdir $installPrefix $buildType 
+      bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
+      bash $scriptDir/compilemod.sh    $buildType $creaenvironmentsource $generationdir $corenumber 
+      bash $scriptDir/ctestmod.sh                 $creaenvironmentsource $generationdir
+   fi
 fi
+creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
+if [ $OperatingSystem = "MacOS" ]
+then
+    #duplicate form creaTools_name.sh?? //FCY
+    DYLD_LIBRARY_PATH=$creaenvironmentdll:$DYLD_LIBRARY_$PATH 
+else
+    LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_$PATH
 fi
- creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
- LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
+
  export creaEnvironment_DIR=$generationdir/creatools_bin/creaEnvironmentBin
 
 # -------------------------
@@ -183,19 +216,27 @@ fi
 #-------------------------
 if [ $start_point -le 6 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-# creaBruker
- bash $scriptDir/cmakemod.sh              $creabrukersource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaBrukerVariables.sh   $creabrukersource $generationdir $docgeneration $gdcmVersion
bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir
- bash $scriptDir/ctestmod.sh              $creabrukersource $generationdir
-fi
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+   # creaBruker
     bash $scriptDir/cmakemod.sh              $creabrukersource $generationdir $installPrefix $buildType 
     bash $scriptDir/creaBrukerVariables.sh   $creabrukersource $generationdir $docgeneration $gdcmVersion
     bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir $corenumber
     bash $scriptDir/ctestmod.sh              $creabrukersource $generationdir
+   fi
 fi
- creabrukerdll=$generationdir/creatools_bin/creabrukerBin
- LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
+creabrukerdll=$generationdir/creatools_bin/creabrukerBin
+if [ $OperatingSystem = "MacOS" ]
+then
+    #duplicate form creaTools_name.sh?? //FCY
+    DYLD_LIBRARY_PATH=$creabrukerdll:$DYLD_LIBRARY_$PATH 
+else
+    LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_$PATH
+fi 
  export creaBruker_DIR=$generationdir/creatools_bin/creaBrukerBin
 
 # -------------------------
@@ -203,19 +244,27 @@ fi
 #-------------------------
 if [ $start_point -le 7 ]
 then
- # the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-# creaImageIO
- bash $scriptDir/cmakemod.sh              $creaimagesource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaImageIOVariables.sh  $creaimagesource $generationdir $docgeneration $gdcmVersion
- bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir
- bash $scriptDir/ctestmod.sh              $creaimagesource $generationdir
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+   # creaImageIO
+      bash $scriptDir/cmakemod.sh              $creaimagesource $generationdir $installPrefix $buildType 
+      bash $scriptDir/creaImageIOVariables.sh  $creaimagesource $generationdir $docgeneration $gdcmVersion
+      bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir $corenumber
+      bash $scriptDir/ctestmod.sh              $creaimagesource $generationdir
+   fi
 fi
+creaimagedll=$generationdir/creatools_bin/creaimageBin
+if [ $OperatingSystem = "MacOS" ]
+then
+    #duplicate form creaTools_name.sh?? //FCY
+    DYLD_LIBRARY_PATH=$creaimagedll:$DYLD_LIBRARY_$PATH 
+else
+    LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_$PATH
 fi
- creaimagedll=$generationdir/creatools_bin/creaimageBin
- LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
+
 export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin
 
 # -------------------------
@@ -223,19 +272,27 @@ export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin
 #-------------------------
 if [ $start_point -le 8 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-# creaContours
- bash $scriptDir/cmakemod.sh              $creacontourssource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir
- bash $scriptDir/ctestmod.sh              $creacontourssource $generationdir
-fi
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+      # creaContours
     bash $scriptDir/cmakemod.sh              $creacontourssource $generationdir $installPrefix $buildType 
     bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
     bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir $corenumber
     bash $scriptDir/ctestmod.sh              $creacontourssource $generationdir
+   fi
 fi
  creacontourdll=$generationdir/creatools_bin/creacontoursBin
- LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
+if [ $OperatingSystem = "MacOS" ]
+then
+    #duplicate form creaTools_name.sh?? //FCY
+    DYLD_LIBRARY_PATH=$creacontoursdll:$DYLD_LIBRARY_$PATH 
+else
+    LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_$PATH
+fi
+
  export creaContours_DIR=$generationdir/creatools_bin/creaContoursBin
 
 # -------------------------
@@ -243,15 +300,15 @@ fi
 #-------------------------
 if [ $start_point -le 9 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
- bash $scriptDir/cmakemod.sh                         $crearigidregistrationssource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaRigidRegistrationVariables.sh   $crearigidregistrationssource $generationdir $docgeneration
bash $scriptDir/compilemod.sh            $buildType $crearigidregistrationssource $generationdir
- bash $scriptDir/ctestmod.sh                         $crearigidregistrationssource $generationdir
-fi
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
     bash $scriptDir/cmakemod.sh                         $crearigidregistrationssource $generationdir $installPrefix $buildType 
     bash $scriptDir/creaRigidRegistrationVariables.sh   $crearigidregistrationssource $generationdir $docgeneration
     bash $scriptDir/compilemod.sh            $buildType $crearigidregistrationssource $generationdir $corenumber
     bash $scriptDir/ctestmod.sh                         $crearigidregistrationssource $generationdir
+   fi
 fi
 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
@@ -262,35 +319,53 @@ fi
 #-------------------------
 if [ $start_point -le 10 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-# bbtkGEditor
- bash $scriptDir/cmakemod.sh              $bbtkgeditorsource $generationdir $installPrefix $buildType 
- bash $scriptDir/bbtkGEditorVariables.sh  $bbtkgeditorsource $generationdir $docgeneration
bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir
- bash $scriptDir/ctestmod.sh              $bbtkgeditorsource $generationdir
-fi
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+      # bbtkGEditor
     bash $scriptDir/cmakemod.sh              $bbtkgeditorsource $generationdir $installPrefix $buildType 
     bash $scriptDir/bbtkGEditorVariables.sh  $bbtkgeditorsource $generationdir $docgeneration
     bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir $corenumber
     bash $scriptDir/ctestmod.sh              $bbtkgeditorsource $generationdir
+   fi
 fi
 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
 
 
 # -------------------------
-#        start_point =  11 : creaTools
+#        start_point =  11 : libido
 #-------------------------
-if [ $start_point -le 11 ]
-then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
+#if [ $start_point -le 11 ]
+#then
+   ## the following stupid test is used at debug time; Please don't remove!
+   ##if [ true = false ]
+   #if [ true = true ]
+   #then
+      ## creaTools
+      # bash $scriptDir/cmakemod.sh                $libidosource $generationdir $installPrefix $buildType 
+      # bash $scriptDir/libidoVariables.sh         $libidosource $generationdir $docgeneration
+      # bash $scriptDir/compilemod.sh   $buildType $libidosource $generationdir $corenumber
+   #fi
+#fi
+
+
+
+# -------------------------
+#        start_point =  12 : creaTools
+#-------------------------
+if [ $start_point -le 12 ]
 then
-# creaTools
- bash $scriptDir/cmakemod.sh                $creatoolssource $generationdir $installPrefix $buildType 
- bash $scriptDir/creaToolsVariables.sh      $creatoolssource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh   $buildType $creatoolssource $generationdir
-fi
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+      # creaTools
+      bash $scriptDir/cmakemod.sh                $creatoolssource $generationdir $installPrefix $buildType 
+      bash $scriptDir/creaToolsVariables.sh      $creatoolssource $generationdir $docgeneration
+      bash $scriptDir/compilemod.sh   $buildType $creatoolssource $generationdir $corenumber
+   fi
 fi
 
 
@@ -300,19 +375,19 @@ fi
 
 
 # -------------------------
-#        start_point =  12 : creaMiniTools
+#        start_point =  13 : creaMiniTools
 #-------------------------
-if [ $start_point -le 12 ]
+if [ $start_point -le 13 ]
 then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-# creaMiniTools
bash $scriptDir/cmakemod.sh                $creaminitoolssource $generationdir $installPrefix $buildType 
bash $scriptDir/creaToolsVariables.sh      $creaminitoolssource $generationdir $docgeneration
bash $scriptDir/compilemod.sh   $buildType $creaminitoolssource $generationdir
-fi
+   # the following stupid test is used at debug time; Please don't remove!
+   #if [ true = false ]
+   if [ true = true ]
+   then
+      # creaMiniTools
     bash $scriptDir/cmakemod.sh                   $creaminitoolssource $generationdir $installPrefix $buildType 
     bash $scriptDir/creaMiniToolsVariables.sh     $creaminitoolssource $generationdir $docgeneration
     bash $scriptDir/compilemod.sh      $buildType $creaminitoolssource $generationdir $corenumber
+   fi
 fi