X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FCreaTools-compile.sh;h=57c9cc4802de0d7bd8284784d3c1cf9d87272f8e;hb=089783c6b6ea9db046e46c2838aa4c1c78e4c9a9;hp=0904608f0bfe8270f598e518b6c9b23a7605e790;hpb=5a79b5a7d0eb2c5d4298ab14934280d14f85f712;p=creaToolsTools.git diff --git a/Linux/scripts/CreaTools-compile.sh b/Linux/scripts/CreaTools-compile.sh index 0904608..57c9cc4 100644 --- a/Linux/scripts/CreaTools-compile.sh +++ b/Linux/scripts/CreaTools-compile.sh @@ -1,3 +1,27 @@ +# --------------------------------------------------------------------- +# +# 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 if [ ! -f $PWD/scripts/CreaTools-configure.sh ] @@ -35,6 +59,8 @@ fi echo $buildType echo --gdcmVersion-- echo $gdcmVersion + echo "--ETC_BASHRC--" + echo $ETC_BASHRC echo --sourcesFrom-- echo $sourcesFrom echo --scriptDir-- @@ -107,22 +133,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 $corenumber - bash $scriptDir/ctestmod.sh $creasource $generationdir -fi + 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 +creadll=$generationdir/creatools_bin/creaBin +if [ $OperatingSystem = "MacOS" ] +then + #duplicate form creaTools_name.sh?? //FCY DYLD_LIBRARY_PATH=$creadll:$DYLD_LIBRARY_$PATH - else +else LD_LIBRARY_PATH=$creadll:$LD_LIBRARY_$PATH - fi +fi export crea_DIR=$generationdir/creatools_bin/creaBin # ------------------------- @@ -130,23 +156,24 @@ 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 $corenumber - bash $scriptDir/ctestmod.sh $bbtksource $generationdir -fi + # 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/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 + #duplicate form creaTools_name.sh?? //FCY DYLD_LIBRARY_PATH=$bbtkdll:$DYLD_LIBRARY_PATH else LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH @@ -158,23 +185,23 @@ export BBTK_DIR=$generationdir/creatools_bin/bbtkBin #------------------------- 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 $corenumber - 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 if [ $OperatingSystem = "MacOS" ] then -#duplicate form creaTools_name.sh?? //FCY - DYLD_LIBRARY_PATH=$creamaracasdll:$DYLD_LIBRARY_$PATH + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creamaracasdll:$DYLD_LIBRARY_$PATH else LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_$PATH fi @@ -186,22 +213,22 @@ 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 $corenumber - 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 -fi - creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin +creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin if [ $OperatingSystem = "MacOS" ] then -#duplicate form creaTools_name.sh?? //FCY + #duplicate form creaTools_name.sh?? //FCY DYLD_LIBRARY_PATH=$creaenvironmentdll:$DYLD_LIBRARY_$PATH else LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_$PATH @@ -214,22 +241,22 @@ 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 $corenumber - 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 +creabrukerdll=$generationdir/creatools_bin/creabrukerBin if [ $OperatingSystem = "MacOS" ] then -#duplicate form creaTools_name.sh?? //FCY + #duplicate form creaTools_name.sh?? //FCY DYLD_LIBRARY_PATH=$creabrukerdll:$DYLD_LIBRARY_$PATH else LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_$PATH @@ -242,22 +269,22 @@ 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 $corenumber - bash $scriptDir/ctestmod.sh $creaimagesource $generationdir -fi + # 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 +creaimagedll=$generationdir/creatools_bin/creaimageBin if [ $OperatingSystem = "MacOS" ] then -#duplicate form creaTools_name.sh?? //FCY + #duplicate form creaTools_name.sh?? //FCY DYLD_LIBRARY_PATH=$creaimagedll:$DYLD_LIBRARY_$PATH else LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_$PATH @@ -270,22 +297,22 @@ 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 $corenumber - 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 if [ $OperatingSystem = "MacOS" ] then -#duplicate form creaTools_name.sh?? //FCY + #duplicate form creaTools_name.sh?? //FCY DYLD_LIBRARY_PATH=$creacontoursdll:$DYLD_LIBRARY_$PATH else LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_$PATH @@ -298,15 +325,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 $corenumber - 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 @@ -317,37 +344,35 @@ 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 $corenumber - 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 : 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 ] -#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 + ## 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 @@ -357,15 +382,15 @@ fi #------------------------- if [ $start_point -le 12 ] 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 $creatoolssource $generationdir $installPrefix $buildType - bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir $corenumber -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 @@ -379,15 +404,15 @@ fi #------------------------- 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/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir $corenumber -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