6 echo "Run it as 'root':"
8 echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <creaTools sources>"
9 echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
10 echo "with 'GDCM Version' : GDCM1 / GDCM2"
11 echo "with 'creaTools sources' : where do you want to get them from ? CVS / HTML"
13 echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2 HTML"
31 echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <creaTools sources> "
32 echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
33 echo "with 'GDCM Version' : GDCM1 / GDCM2"
34 echo "with 'creaTools sources' : where do you want to get them from ? CVS / HTML"
36 echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2 HTML"
42 #allow user to choose the generation dir
43 #allow user to choose to generate the doc or not
57 creamaracassource=creaMaracasVisu
58 creaenvironmentsource=creaEnvironment
59 creabrukersource=creaBruker
60 creaimagesource=creaImageIO
61 creacontourssource=creaContours
62 crearigidregistrationssource=creaRigidRegistration
63 bbtkgeditorsource=bbtkGEditor
64 creatoolssource=creaTools
68 # start_point : used at debug time : start point of the script
69 # ex : if everything is OK, but bbtkGEditor,
70 # cvs upate bbtkGEditor manually,and use :
72 # in order not to cvs co everything, nor recompile everything.
80 # -------------------------
81 # start_point = 2 : CREA
82 #-------------------------
83 if [ $start_point -le 2 ]
86 # the following stupid test is used at debug time; Please don't remove!
90 sh installmod.sh $buildType $creasource $generationdir
94 creadll=$generationdir/creatools_bin/creaBin
95 LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
99 # -------------------------
100 # start_point = 3 : BBTK
101 #-------------------------
102 if [ $start_point -le 3 ]
104 # the following stupid test is used at debug time; Please don't remove!
109 sh installmod.sh $buildType $bbtksource $generationdir
112 bbtkdll=$generationdir/creatools_bin/bbtkBin
113 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
116 # -------------------------
117 # start_point = 4 : creaMaracasVisu
118 #-------------------------
119 if [ $start_point -le 4 ]
121 # the following stupid test is used at debug time; Please don't remove!
126 sh installmod.sh $buildType $creamaracassource $generationdir
129 creamaracasdll=$generationdir/creatools_bin/creamaracasBin
130 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
133 # -------------------------
134 # start_point = 5 : creaEnvironment
135 #-------------------------
136 if [ $start_point -le 5 ]
138 # the following stupid test is used at debug time; Please don't remove!
143 sh installmod.sh $buildType $creaenvironmentsource $generationdir
146 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
147 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
150 # -------------------------
151 # start_point = 6 : creaBruker
152 #-------------------------
153 if [ $start_point -le 6 ]
155 # the following stupid test is used at debug time; Please don't remove!
160 sh installmod.sh $buildType $creabrukersource $generationdir
164 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
165 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
168 # -------------------------
169 # start_point = 7 : creaImageIO
170 #-------------------------
171 if [ $start_point -le 7 ]
173 # the following stupid test is used at debug time; Please don't remove!
178 sh installmod.sh $buildType $creaimagesource $generationdir
181 creaimagedll=$generationdir/creatools_bin/creaimageBin
182 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
185 # -------------------------
186 # start_point = 8 : creaContour
187 #-------------------------
188 if [ $start_point -le 8 ]
190 # the following stupid test is used at debug time; Please don't remove!
195 sh installmod.sh $buildType $creacontourssource $generationdir
198 # creacontourdll=$generationdir/creatools_bin/creacontoursBin
199 # LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
202 # -------------------------
203 # start_point = 9 : creaRigidRegistration
204 #-------------------------
205 if [ $start_point -le 9 ]
207 # the following stupid test is used at debug time; Please don't remove!
211 sh installmod.sh $buildType $crearigidregistrationssource $generationdir
214 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
215 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
218 # -------------------------
219 # start_point = 10 : bbtkGEditor
220 #-------------------------
221 if [ $start_point -le 10 ]
223 # the following stupid test is used at debug time; Please don't remove!
228 sh installmod.sh $buildType $bbtkgeditorsource $generationdir
231 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
232 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
235 # -------------------------
236 # start_point = 11 : creaTools
237 #-------------------------
238 if [ $start_point -le 11 ]
240 # the following stupid test is used at debug time; Please don't remove!
245 sh installmod.sh $buildType $creatoolssource $generationdir
250 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
251 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
254 CREATOOLS_INSTALL_DIR=$installPrefix
255 rm $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
256 touch $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
257 chmod 666 $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
259 #######################################
261 touch $installPrefix/share/creatools_base_library_config.sh
262 chmod 666 $installPrefix/share/creatools_base_library_config.sh
265 echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
266 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
267 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh
270 # - remove line 'sh $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh' if any (with accurate value for ???)
271 sed -i -e '/.*creatools_base_library_config.*/ d' ~/.bashrc
273 # - add line 'sh $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' (with accurate value for ???)
274 echo source $installPrefix/share/creatools_base_library_config.sh >> ~/.bashrc