--- /dev/null
+#!/bin/sh
+
+# Set all local variables
+
+ if [ -f $PWD/scripts/CreaTools-configure.sh ]
+ then
+ source $PWD/scripts/CreaTools-configure.sh
+ source $PWD/scripts/CreaTools-names.sh
+
+ echo "------"
+ echo $PWD/scripts/CreaTools-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 "------"
+
+else
+ echo
+ echo "..ERROR.."
+ echo "==================================================="
+ echo "REMEMBER !"
+ echo ""
+ echo "YOU NEED TO RUN 'Configure' (0) First !"
+ echo "==================================================="
+ echo
+ echo
+ exit 0
+
+fi
+
+if [ ! -e $generationdir ]
+then
+ mkdir $generationdir
+ mkdir $generationdir/creatools_source
+ mkdir $generationdir/creatools_bin
+fi
+
+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