]> Creatis software - creaToolsTools.git/blobdiff - Install/scripts/make-install.sh
Choose source loading mode : from CVS / HTML
[creaToolsTools.git] / Install / scripts / make-install.sh
index 848ba4d15caea05745719dbb5e20e81f9770ce0e..ced49fc8b7b0c43f370e31c3bdf63d9dac161851 100644 (file)
@@ -5,11 +5,12 @@ then
 
 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
 
@@ -22,14 +23,17 @@ echo $3
 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
 
@@ -44,17 +48,9 @@ cvsUserName=$3
 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
@@ -77,35 +73,6 @@ cd $generationdir
 
 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