echo "Run it as 'root':"
echo "Use it as :"
-echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version>"
+echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <creaTools sources>"
echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
echo "with 'GDCM Version' : GDCM1 / GDCM2"
+echo "with 'creaTools sources' : where do you want to get them from ? CVS / HTML"
echo " "
-echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2"
+echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2 HTML"
exit 0
fi
echo $4
echo $5
echo $6
+echo $7
echo "----------"
-if [ $# != 6 ]
+if [ $# != 7 ]
then
-echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version>"
+echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <creaTools sources> "
echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
+echo "with 'GDCM Version' : GDCM1 / GDCM2"
+echo "with 'creaTools sources' : where do you want to get them from ? CVS / HTML"
echo " "
-echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2"
+echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2 HTML"
exit 0
fi
installPrefix=$4
buildType=$5
gdcmVersion=$6
+sourcesFrom=$7
scriptDir=$PWD
-echo scriptDir
-echo $scriptDir
-
-
-# /// \TODO check if directories exist.
-# /// \ exit 0 if they don't (message: run install.sh first!")
-#mkdir $generationdir
-#mkdir $generationdir/creatools_source
-#mkdir $generationdir/creatools_bin
creasource=crea
bbtksource=bbtk
start_point=0
-# --------------------------------
-# start_point = 1 : remove everything hat was installed before
-#---------------------------------
-if [ $start_point -le 1 ]
-then
-# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-if [ true = true ]
-then
-
- rm -rf creatools_install/lib/creatools
- rm -rf creatools_install/lib64/creatools
- rm -rf creatools_install/bin/bb*
- rm -rf creatools_install/bin/crea*
- rm -rf creatools_install/include/bb*
- rm -rf creatools_install/include/crea*
- rm -rf creatools_install/share/bb*
- rm -rf creatools_install/share/crea*
-
-#this is for the old versions EED
- rm -rf creatools_install/lib/crea*
- rm -rf creatools_install/lib/libbb*
- rm -rf creatools_install/lib/libcrea*
- rm -rf creatools_install/lib64/crea*
- rm -rf creatools_install/lib64/libbb*
- rm -rf creatools_install/lib64/libcrea*
-fi
-fi
-
cd $scriptDir