exit 0
fi
-echo $OS
-echo 'ididid'
+echo $OS
generationdir=$1
installPrefix=$2
buildType=$3
echo export VTK_DIR=$installPrefix/lib/vtk-5.6 >> $installPrefix/share/creatools_third_party_library_config.sh
echo export ITK_DIR=$installPrefix/lib/InsightToolkit >> $installPrefix/share/creatools_third_party_library_config.sh
echo export GDCM_DIR=$installPrefix/lib/gdcm >> $installPrefix/share/creatools_third_party_library_config.sh
-echo export TTH=$installPrefix/bin/tth >> $installPrefix/share/creatools_third_party_library_config.sh
+echo export TTH=$installPrefix/bin/tth >> $installPrefix/share/creatools_third_party_library_config.sh
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$GDCM_DIR >> $installPrefix/share/creatools_third_party_library_config.sh
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$ITK_DIR >> $installPrefix/share/creatools_third_party_library_config.sh
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR >> $installPrefix/share/creatools_third_party_library_config.sh
-=== === === UNIX / LINUX users === === ===
+=== === === (new way) UNIX / LINUX users === === ===
+
+
+1) Make sure everything you'll need is properly installed :
+crea_Developers_tools, crea_ThirdParty_Libraries
+have a look at :
+http://www.creatis.insa-lyon.fr/site/fr/CreatoolsDownload
+and/or :
+cd Install_ThirdParty
+follow the Readme.txt
+
+2) make sure VTK_DIR environment variable is set properly :
+echo $VTK_DIR
+Set it, if not OK:
+export VTK_DIR=/usr/local/lib/vtk-5.4, for instance
+
+3) make sure LATEX_COMPILER environment variable is set properly :
+echo $LATEX_COMPILER
+Set it, if not OK:
+export LATEX_COMPILER=/usr/bin/latex, for instance
+
+4) Make sure you got the last version of creaToolsTools.
+cvs update -dP creaToolsTools
+
+a) cd Install
+
+b) cp configure.sh_TEMPLATE configure.sh
+
+c) modify (only once) the file configure.sh, according to your preferences:
+vim configure.sh
+as follows :
+-- configure.sh ---------------------
+generationdir=<name of the Generation Directory>
+docGeneration=<Boolean For Doc Generation> : ON / OFF
+cvsUserName=<user Name For CVS>
+installPrefix=<installPrefix> : /usr/local or $generationdir/creatools_install
+buildType=<buildType> : Release / Debug
+gdcmVersion=<GDCM Version> : GDCM1 / GDCM2
+sourcesFrom=<where do you want to get them from> : CVS / HTML
+--------------------------------------
+
+
+d) if you choosed 'sourcesFrom=CVS' :
+ssh-add
+<type your cvs password>
+
+e) sh scripts/make.sh
+
+f) make sure everything is OK
+
+g) switch as root
+
+h) sh scripts/make-install.sh
+
+
+
+
+
+
+=== === === (old way) UNIX / LINUX users === === ===
0) Make sure you are a 'sudoer'.
have a look at :
7) modify the file creatools.sh, according to your preferences, modify (only once) creatools.sh
vim creatools.sh
as follows :
-
-- creatools.sh ---------------------
creatoolsGeneration=<directory you want to generate in>
installPrefix=<your Install dir> or </usr/local>