+++ /dev/null
-#!/bin/sh
-
-if [ $# = 0 ]
-then
-echo "Use it as :"
-echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version>"
-echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
-echo "with 'GDCM Version' : GDCM1 / GDCM2"
-echo " "
-echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2"
-exit 0
-fi
-
-echo $#
-echo "----------"
-echo $0
-echo $1
-echo $2
-echo $3
-echo $4
-echo $5
-echo $6
-echo "----------"
-
-if [ $# != 6 ]
-then
-echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version>"
-echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
-echo " "
-echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2"
-exit 0
-fi
-
-# @echo off
-
-#allow user to choose the generation dir
-#allow user to choose to generate the doc or not
-
-generationdir=$1
-docgeneration=$2
-cvsUserName=$3
-installPrefix=$4
-buildType=$5
-gdcmVersion=$6
-
-scriptDir=$PWD
-echo scriptDir
-echo $scriptDir
-
-
-mkdir $generationdir
-cd $generationdir
-
- creasource=crea
- bbtksource=bbtk
- creamaracassource=creaMaracasVisu
- creaenvironmentsource=creaEnvironment
- creabrukersource=creaBruker
- creaimagesource=creaImageIO
- creacontourssource=creaContours
- crearigidregistrationssource=creaRigidRegistration
- bbtkgeditorsource=bbtkGEditor
- creatoolssource=creaTools
-
-
-# start_point : used at debug time : start point of the script
-# ex : if everything is OK, but bbtkGEditor,
-# cvs upate bbtkGEditor manually,and use :
-# start_point=10
-# in order not to cvs co everything, nor recompile everything.
-
-start_point=0
-
-
-
-# --------------------------------
-# start_point = 0 : remove everything but source files
-#---------------------------------
-if [ $start_point -le 0 ]
-then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
- rm -rf creatools_bin
- mkdir $generationdir/creatools_bin
- rm -rf creatools_source
- mkdir $generationdir/creatools_source
-
- sudo rm -rf creatools_install/lib/creatools
- sudo rm -rf creatools_install/lib64/creatools
- sudo rm -rf creatools_install/bin/bb*
- sudo rm -rf creatools_install/bin/crea*
- sudo rm -rf creatools_install/include/bb*
- sudo rm -rf creatools_install/include/crea*
- sudo rm -rf creatools_install/share/bb*
- sudo rm -rf creatools_install/share/crea*
-
-#this is for the old versions EED
- sudo rm -rf creatools_install/lib/crea*
- sudo rm -rf creatools_install/lib/libbb*
- sudo rm -rf creatools_install/lib/libcrea*
- sudo rm -rf creatools_install/lib64/crea*
- sudo rm -rf creatools_install/lib64/libbb*
- sudo rm -rf creatools_install/lib64/libcrea*
-fi
-fi
-
-
-# ----------------------------------
-# start_point = 1 : checkout all
-#-----------------------------------
-if [ $start_point -le 1 ]
-then
-#if [ true = false ]
-if [ true = true ]
-then
- sh $scriptDir/cvscheckout.sh $creasource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $bbtksource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creamaracassource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creabrukersource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creaimagesource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creacontourssource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
-fi
-fi
-
-cd $scriptDir
-
-
-# -------------------------
-# start_point = 2 : CREA
-#-------------------------
-if [ $start_point -le 2 ]
-then
-# CREA
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
- sh cmakemod.sh $creasource $generationdir $installPrefix $buildType
- sh creaVariables.sh $creasource $generationdir $docgeneration
- sh compilemod.sh $buildType $creasource $generationdir
- sh ctestmod.sh $creasource $generationdir
-fi
-fi
- creadll=$generationdir/creatools_bin/creaBin
- LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
-
-
-# -------------------------
-# start_point = 3 : BBTK
-#-------------------------
-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
- sh cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
- sh bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
- sh compilemod.sh $buildType $bbtksource $generationdir
- sh ctestmod.sh $bbtksource $generationdir
-fi
-fi
- bbtkdll=$generationdir/creatools_bin/bbtkBin
- LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# 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
- sh cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
- sh creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
- sh compilemod.sh $buildType $creamaracassource $generationdir
- sh ctestmod.sh $creamaracassource $generationdir
-fi
-fi
- creamaracasdll=$generationdir/creatools_bin/creamaracasBin
- LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 5 : creaEnvironment
-#-------------------------
-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
- sh cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
- sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
- sh compilemod.sh $buildType $creaenvironmentsource $generationdir
- sh ctestmod.sh $creaenvironmentsource $generationdir
-fi
-fi
- creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
- LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 6 : creaBruker
-#-------------------------
-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
- sh cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
- sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
- sh compilemod.sh $buildType $creabrukersource $generationdir
- sh ctestmod.sh $creabrukersource $generationdir
- echo generationdir
-fi
-fi
- creabrukerdll=$generationdir/creatools_bin/creabrukerBin
- LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 7 : creaImageIO
-#-------------------------
-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
- sh cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
- sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
- sh compilemod.sh $buildType $creaimagesource $generationdir
- sh ctestmod.sh $creaimagesource $generationdir
-fi
-fi
- creaimagedll=$generationdir/creatools_bin/creaimageBin
- LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 8 : creaContour
-#-------------------------
-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
- sh cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
- sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
- sh compilemod.sh $buildType $creacontourssource $generationdir
- sh ctestmod.sh $creacontourssource $generationdir
-fi
-fi
-# creacontourdll=$generationdir/creatools_bin/creacontoursBin
-# LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 9 : creaRigidRegistration
-#-------------------------
-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
- sh cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
- sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
- sh compilemod.sh $buildType $crearigidregistrationssource $generationdir
- sh ctestmod.sh $crearigidregistrationssource $generationdir
-fi
-fi
-# crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
-# LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 10 : bbtkGEditor
-#-------------------------
-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
- sh cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
- sh bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
- sh compilemod.sh $buildType $bbtkgeditorsource $generationdir
- sh ctestmod.sh $bbtkgeditorsource $generationdir
-fi
-fi
-# bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
-# LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 11 : creaTools
-#-------------------------
-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
- sh cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
- sh creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
- sh compilemod.sh $buildType $creatoolssource $generationdir
-fi
-fi
-
-
-# sh ctestmod.sh $creatoolsbinary $generationdir
-# creatoolsdll=$generationdir/creatools_bin/creatoolsBin
-# LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
-
-
-CREATOOLS_INSTALL_DIR=$installPrefix
-sudo rm $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo touch $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo chmod 666 $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-
-#######################################
-
-sudo touch $installPrefix/share/creatools_base_library_config.sh
-sudo chmod 666 $installPrefix/share/creatools_base_library_config.sh
-
-
-sudo echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
-sudo echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
-sudo echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh
-
-
-
-
-
-# shutdown /s
-# exit /b
+++ /dev/null
-# $1 : creaBruker
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D creaMaracasVisu_DIR:PATH=$2/creatools_bin/creaMaracasVisuBin CMakeCache.txt
-cmake -D BUILD_bbtkGEditor_DOC:BOOL=$3 CMakeCache.txt
-cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-#!/bin/sh
-
-# $1 : bbtk
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-# $4 : GDCM1 / GDCM2
-
-
-
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-
-# use GDCM1 as default !
-if [ $4 = GDCM2 ]
-then
-boolgdcm2=ON
-boolgdcm1=OFF
-else
-boolgdcm2=OFF
-boolgdcm1=ON
-fi
-
-
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt
-cmake -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 -D BUILD_BBTK_DOC_GUIDES_PDF:BOOL=$3 -D BUILD_BBTK_DOC_DOXYGEN:BOOL=$3 -D BUILD_BBTK_DOC_PACKAGE:BOOL=$3 CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cmake -D --BUILD_ALL:BOOL=OFF -D BUILD_BBTK_DOC:BOOL=$3 CMakeCache.txt
-
-cd ..
-
-
+++ /dev/null
-#!/bin/sh
-
-currentdir=$2
-installPrefix=$3
-dirInstall=$currentdir/creatools_bin/$1Bin
-buildType=$4
-
-echo " "
-echo " "
-echo " "
-echo " "
-echo " ========================================================================== $1 ======================================================== "
-echo " "
-echo " "
-echo " "
-echo " "
-echo " ======="
-echo $1
-echo $2
-echo $3
-echo $4
-echo " ======="
-if [ $buildType = "Debug" ]
-then
-debug="ON"
-else
-debug="OFF"
-fi
-
-echo dirInstall
-echo $dirInstall
-
-mkdir $dirInstall
-cd $dirInstall
-echo -H$currentdir/creatools_source/$1
-echo -B$dirInstall/
-
-##cmake -G"Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
-cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
-
-cmake -D BUILD_ALL:BOOL=ON -D INCLUDE_CTEST:BOOL=ON -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
-
-# the following line is the right one!
-#cmake -D INCLUDE_CTEST:BOOL=ON CMakeCache.txt
-
-# This one : only for misinstalled vtk:
-# modify VTK_DIR:PATH=, acording to your own computer
-
-##cmake -D INCLUDE_CTEST:BOOL=ON -D BBTK_USE_WXWIDGETS:BOOL=ON -D VTK_DIR:PATH=$VTKdir -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
-cd ..
-
-
+++ /dev/null
-# $1 : useless for Linux (Release/Debug)
-# $2 : name of source ex : crea
-# $3 : generationdir ex : /tmp/myGenerationDir
-
-cd $3/creatools_bin/$2Bin
-echo "--------------------------------------in compilemod-- $2 ------------"
-echo $1
-echo $2
-echo $3
-
-make -j 2
-
-# We don't install immediately!
-
-#pwd
-#sudo make install
-#cd ../..
-#pwd
-
-echo "--------------------------------------out compilemod--------------"
+++ /dev/null
-#!/bin/sh
-
-
-# used by make.sh and make-install.sh (that replace All.sh)
-# use 'source configure.sh'
-
-
-#allow user to choose the generation dir
-#allow user to choose to generate the doc or not
-#allow user to choose where he wants to get the sources from : CVS / HTML
-
-echo $#
-echo "----------"
-echo $0
-echo $1
-echo $2
-echo $3
-echo $4
-echo $5
-echo $6
-echo $7
-echo "----------"
-
-if [ $# != 7 ]
-then
-echo
-echo
-echo "==================================================="
-echo "WRONG NUMBER OF ARGUMENTS IN YOUR configure.sh FILE"
-echo "==================================================="
-echo
-echo
-echo "Should be :"
-echo "<nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <where are creaTools sources>"
-echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
-echo "with 'GDCM Version' : GDCM1 / GDCM2"
-echo "with 'where are creaTools sources' : where do you want to get them from ? CVS / HTML"
-echo " "
-exit 0
-fi
-
-generationdir=$1
-docgeneration=$2
-cvsUserName=$3
-installPrefix=$4
-buildType=$5
-gdcmVersion=$6
-sourcesFrom=$7
-
-scriptDir=$PWD
-
-# start_point : used at debug time : start point of the script
-# ex : if everything is OK, but bbtkGEditor,
-# cvs upate bbtkGEditor manually,and use :
-# start_point=10
-# in order not to 'cvs checkout' everything, nor recompile everything.
-
-start_point=0
-
-
-
- creadll=$generationdir/creatools_bin/creaBin
-LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
- bbtkdll=$generationdir/creatools_bin/bbtkBin
-LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
- creamaracasdll=$generationdir/creatools_bin/creamaracasBin
-LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
- creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
-LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
- creabrukerdll=$generationdir/creatools_bin/creabrukerBin
-LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
- creaimagedll=$generationdir/creatools_bin/creaimageBin
-LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
- creacontourdll=$generationdir/creatools_bin/creacontoursBin
-LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
- crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
-LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
- bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
-LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
- creatoolsdll=$generationdir/creatools_bin/creatoolsBin
-LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
-
-
+++ /dev/null
-# $1 : creaBruker
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-# $4 : GDCM1 / GDCM2
-
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-# use GDCM1 as default !
-if [ $4 = "GDCM2" ]
-then
-boolgdcm2=ON
-boolgdcm1=OFF
-else
-boolgdcm2=OFF
-boolgdcm1=ON
-fi
-
-
-#cmake -D BUILD_ALL:BOOL=OFF CMakeCache.txt
-cmake -D BUILD_creaBruker_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
-
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-# $1 : creaBruker
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D creaEnvironment_DIR:PATH=$2/creatools_bin/creaEnvironmentBin CMakeCache.txt
-cmake -D creaMaracasVisu_DIR:PATH=$2/creatools_bin/creaMaracasVisuBin CMakeCache.txt
-cmake -D creaImageIO_DIR:PATH=$2/creatools_bin/creaImageIOBin CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON CMakeCache.txt
-cmake -D creaContours_DOC:BOOL=$3 CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
-
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-#!/bin/sh
-
-# $1 : 'creaImageIO'
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-# $4 : GDCM1 / GDCM2
-
-currentdir=$2
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-# use GDCM1 as default !
-if [ $4 = "GDCM2" ]
-then
-boolgdcm2=ON
-boolgdcm1=OFF
-else
-boolgdcm2=OFF
-boolgdcm1=ON
-fi
-
-cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
-cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D creaBruker_DIR:PATH=$currentdir/creatools_bin/creaBrukerBin CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt
-cmake -D BUILD_creaImageIO_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
-
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-#!/bin/sh
-
-# $1 : bbtk
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-
-currentdir=$2
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON CMakeCache.txt
-cmake -D creaMaracasVisu_DOC:BOOL=$3 CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
-
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-# $1 : creaBruker
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-
-cmake -D crea_DIR:PATH=$currentdir$2 -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON -D BUILD_creaRigidRegistration_DOC:BOOL=$3 -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cd ..
+++ /dev/null
-# $1 : 'creaTools'
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-cmake -D CREATOOLS_SOURCE_PATH:PATH=$currentdir/creatools_bin/ CMakeCache.txt
-
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-#!/bin/sh
-
-# $1 : bbtk
-# $2 : generationdir
-# $3 : ON/OFF (generate doc) --> Not used
-
-binfolder=$2/creatools_bin/$1Bin
-
-cd $binfolder
-
-cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-#!/bin/sh
-
-# $1 : 'creaEnvironment'
-# $2 : generationdir
-# $3 : ON/OFF (generate doc)
-
-binfolder=$2/creatools_bin/$1Bin
-cd $binfolder
-
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-
-cmake CMakeCache.txt
-
-cd ..
+++ /dev/null
-
-cd $2/creatools_bin/$1Bin
-
-/usr/bin/ctest -D ExperimentalConfigure -D ExperimentalBuild
-
-cd ..
+++ /dev/null
-
-cd $2/creatools_source
-cvs -d :ext:$3@cvs.creatis.insa-lyon.fr:/cvs/creatis checkout $1
-cd ..
-
+++ /dev/null
-# $1 : useless for Linux (Release/Debug)
-# $2 : name of source ex : crea
-# $3 : generationdir ex : /tmp/myGenerationDir
-
-cd $3/creatools_bin/$2Bin
-echo
-echo
-echo
-echo "------------------------------------------in installmod-- $2 ------------"
-echo $1
-echo $2
-echo $3
-
-# We install, now
-
-pwd
-make install
-cd ../..
-pwd
-
+++ /dev/null
-#!/bin/sh
-
-
-if [ $UID = 0 ]
-then
- # Set all local variables
- source $PWD/configure.sh
- cd $scriptDir
- sh installmod.sh $buildType $creasource $generationdir
- sh installmod.sh $buildType $bbtksource $generationdir
- sh installmod.sh $buildType $creamaracassource $generationdir
- sh installmod.sh $buildType $creaenvironmentsource $generationdir
- sh installmod.sh $buildType $creabrukersource $generationdir
- sh installmod.sh $buildType $creaimagesource $generationdir
- sh installmod.sh $buildType $creacontourssource $generationdir
- sh installmod.sh $buildType $crearigidregistrationssource $generationdir
- sh installmod.sh $buildType $bbtkgeditorsource $generationdir
- sh installmod.sh $buildType $creatoolssource $generationdir
-
- touch $installPrefix/share/creatools_base_library_config.sh
- rm $installPrefix/share/creatools_base_library_config.sh
- touch $installPrefix/share/creatools_base_library_config.sh
- chmod 755 $installPrefix/share/creatools_base_library_config.sh
-
- echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
- 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
-
-
- # - remove line 'sh $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' if any
- sed -i -e '/.*creatools_base_library_config.*/ d' /etc/bashrc
- # modify /etc/bashrc (we cannot modify .bashrc, since we witched as root)
- # - add line 'sh $installPrefix/creatools_install/share/creatools_base_libraries_config.sh'
- echo source $installPrefix/share/creatools_base_library_config.sh >> /etc/bashrc
-else
- echo
- echo "..ERROR.."
- echo "==================================================="
- echo "REMEMBER !"
- echo ""
- echo "YOU NEED TO RUN THIS ONE AS root"
- echo "==================================================="
- echo
- echo
-fi
-
+++ /dev/null
-#!/bin/sh
-
-# Set all local variables
-
-
-source $PWD/configure.sh
-echo "------"
-echo $PWD/configure.sh
-echo generationdir
-echo $generationdir
-echo docgeneration
-echo $docgeneration
-echo installPrefix
-echo $installPrefix
-echo buildType
-echo $buildType
-echo gdcmVersion
-echo $gdcmVersion
-echo sourcesFrom
-echo $sourcesFrom
-echo scriptDir
-echo $scriptDir
-echo start_point
-echo $start_point
-echo "------"
-
-
-mkdir $generationdir
-mkdir $generationdir/creatools_source
-mkdir $generationdir/creatools_bin
-
-cd $generationdir
-
-
-# --------------------------------
-# start_point = 0 : remove everything that was created before
-#---------------------------------
-if [ $start_point -le 0 ]
-then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
- rm -rf creatools_bin
- mkdir $generationdir/creatools_bin
- rm -rf creatools_source
- mkdir $generationdir/creatools_source
-fi
-fi
-
-# ----------------------------------
-# start_point = 1 : Load all sources
-#-----------------------------------
-
-
-if [ $start_point -le 1 ]
-then
- if [ true = true ]
- #if [ true = false ]
- then
-#
- if [ $sourcesFrom = CVS ]
- then
- sh $scriptDir/cvscheckout.sh $creasource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $bbtksource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creamaracassource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creabrukersource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creaimagesource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creacontourssource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
- sh $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
- fi
-
- if [ $sourcesFrom = HTML ]
- then
- cd $generationdir/creatools_source
- wwwtargz=http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/nightly/
-
- wget $wwwtargz/crea.tgz
- wget $wwwtargz/bbtk.tgz
- wget $wwwtargz/creaMaracasVisu.tgz
- wget $wwwtargz/creaEnvironment.tgz
- wget $wwwtargz/creaBruker.tgz
- wget $wwwtargz/creaImageIO.tgz
- wget $wwwtargz/creaContours.tgz
- wget $wwwtargz/creaRigidRegistration.tgz
- wget $wwwtargz/bbtkGEditor.tgz
- wget $wwwtargz/creaTools.tgz
-
- tar xvzf crea.tgz
- tar xvzf bbtk.tgz
- tar xvzf creaMaracasVisu.tgz
- tar xvzf creaEnvironment.tgz
- tar xvzf creaBruker.tgz
- tar xvzf creaImageIO.tgz
- tar xvzf creaContours.tgz
- tar xvzf creaRigidRegistration.tgz
- tar xvzf bbtkGEditor.tgz
- tar xvzf creaTools.tgz
-
- rm -f *.tgz
- fi
- fi
-fi
-
-cd $scriptDir
-
-# -------------------------
-# start_point = 2 : CREA
-#-------------------------
-if [ $start_point -le 2 ]
-then
-# CREA
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
- sh $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
- sh $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration
- sh $scriptDir/compilemod.sh $buildType $creasource $generationdir
- sh $scriptDir/ctestmod.sh $creasource $generationdir
-fi
-fi
- creadll=$generationdir/creatools_bin/creaBin
- LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
-
-
-# -------------------------
-# start_point = 3 : BBTK
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
- sh $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
- sh $scriptDir/compilemod.sh $buildType $bbtksource $generationdir
- sh $scriptDir/ctestmod.sh $bbtksource $generationdir
-fi
-fi
- bbtkdll=$generationdir/creatools_bin/bbtkBin
- LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# 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
- sh $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
- sh $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
- sh $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir
- sh $scriptDir/ctestmod.sh $creamaracassource $generationdir
-fi
-fi
- creamaracasdll=$generationdir/creatools_bin/creamaracasBin
- LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 5 : creaEnvironment
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
- sh $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
- sh $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir
- sh $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
-fi
-fi
- creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
- LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 6 : creaBruker
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
- sh $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
- sh $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir
- sh $scriptDir/ctestmod.sh $creabrukersource $generationdir
-fi
-fi
- creabrukerdll=$generationdir/creatools_bin/creabrukerBin
- LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 7 : creaImageIO
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
- sh $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
- sh $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir
- sh $scriptDir/ctestmod.sh $creaimagesource $generationdir
-fi
-fi
- creaimagedll=$generationdir/creatools_bin/creaimageBin
- LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 8 : creaContour
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
- sh $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
- sh $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir
- sh $scriptDir/ctestmod.sh $creacontourssource $generationdir
-fi
-fi
-# creacontourdll=$generationdir/creatools_bin/creacontoursBin
-# LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 9 : creaRigidRegistration
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
- sh $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
- sh $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir
- sh $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
-fi
-fi
-# crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
-# LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 10 : bbtkGEditor
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
- sh $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
- sh $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir
- sh $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
-fi
-fi
-# bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
-# LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
-
-
-# -------------------------
-# start_point = 11 : creaTools
-#-------------------------
-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
- sh $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
- sh $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
- sh $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir
-fi
-fi
-
-
-# sh ctestmod.sh $creatoolsbinary $generationdir
-# creatoolsdll=$generationdir/creatools_bin/creatoolsBin
-# LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
-
-# shutdown /s
-# exit /b
+++ /dev/null
-#!/bin/sh
-
-
-if [ $UID = 0 ]
-then
- # Set all local variables
- source $PWD/configure.sh
-
- cd $installPrefix
-
- cd bin
- # Maybe too much brute! (What if anything else starts with 'bb' or 'crea'?)
- #rm -f bb*
- #rm -f crea*
-
- # WARNING : this list must be updated when new package is added
-
-rm -f bbc
-rm -f bbCreateBlackBox
-rm -f bbCreatePackage
-rm -f bbEditor
-rm -f bbfy
-rm -f bbi
-rm -f bbPackageBrowser
-rm -f bbPlugPackage
-rm -f bbPostInstallPackage
-rm -f bbRegenerateBoxesLists
-rm -f bbRegeneratePackageDoc
-rm -f bbs2cpp
-rm -f bbStudio
-rm -f bbtk-install-gnome
-rm -f bbtk-uninstall.sh
-rm -f creaContourApp
-rm -f creaGimmickApp
-rm -f creaImageIOApp
-rm -f creaNewProject
-rm -f creaNewProject.sh
-
- cd ../include
- # Maybe too much brute! (What if anything else starts with 'bb' or 'crea'?)
- #rm -rf bb*
- #rm -rf crea*
-
- # WARNING : this list must be updated when new package is added
-
-rm -rf bbappli
-rm -rf bbcreaContours
-rm -rf bbcreaImageIO
-rm -rf bbcreaMaracasVisu
-rm -rf bbdemo
-rm -rf bbgdcmvtk
-rm -rf bbitk
-rm -rf bbitkvtk
-rm -rf bbPackRecalage
-rm -rf bbqt
-rm -rf bbstd
-rm -rf bbtk
-rm -rf bbtoolsbbtk
-rm -rf bbvtk
-rm -rf bbwx
-rm -rf bbwxvtk
-rm -rf crea
-rm -rf creaBruker
-rm -rf creaContours
-rm -rf creaEnvironment
-rm -rf creaImageIO
-rm -rf creaMaracasVisu
-
- cd ../lib
- # this one is riskless
- rm -rf creatools
-
- cd ../share
- # this one is riskless
- rm -rf bbtk creaImageIO creaNewProject creaContours creaMaracasVisu
- rm -f creatools_base_library_config.sh
-
- # revert /etc/bashrc to previous value
- # - remove line 'sh $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh'
- sed -i -e '/.*creatools_base_library_config.*/ d' /etc/bashrc
-
-else
- echo
- echo "..ERROR.."
- echo "==================================================="
- echo "REMEMBER !"
- echo ""
- echo "YOU NEED TO RUN THIS ONE AS root"
- echo "==================================================="
- echo
- echo
-fi
-