6 echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <creaTools sources>"
7 echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
8 echo "with 'GDCM Version' : GDCM1 / GDCM2"
9 echo "with 'creaTools sources' : where do you want to get them from ? CVS / HTML"
11 echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2 HTML"
30 echo "sh make-install.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <creaTools sources>"
31 echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
32 echo "with 'GDCM Version' : GDCM1 / GDCM2"
33 echo "with 'creaTools sources' : where do you want to get them from ? CVS / HTML"
35 echo "ex : sh make-install.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2 HTML"
41 #allow user to choose the generation dir
42 #allow user to choose to generate the doc or not
43 #allow user to choose where he wants to get the sources from : CVS / HTML
57 creamaracassource=creaMaracasVisu
58 creaenvironmentsource=creaEnvironment
59 creabrukersource=creaBruker
60 creaimagesource=creaImageIO
61 creacontourssource=creaContours
62 crearigidregistrationssource=creaRigidRegistration
63 bbtkgeditorsource=bbtkGEditor
64 creatoolssource=creaTools
67 mkdir $generationdir/creatools_source
68 mkdir $generationdir/creatools_bin
72 # start_point : used at debug time : start point of the script
73 # ex : if everything is OK, but bbtkGEditor,
74 # cvs upate bbtkGEditor manually,and use :
76 # in order not to cvs co everything, nor recompile everything.
80 # --------------------------------
81 # start_point = 0 : remove everything that was created before
82 #---------------------------------
83 if [ $start_point -le 0 ]
85 # the following stupid test is used at debug time; Please don't remove!
90 mkdir $generationdir/creatools_bin
91 rm -rf creatools_source
92 mkdir $generationdir/creatools_source
96 # ----------------------------------
97 # start_point = 1 : Load all sources
98 #-----------------------------------
99 if [ $start_point -le 1 ]
105 if [ $sourcesFrom = CVS ]
107 sh $scriptDir/cvscheckout.sh $creasource $generationdir $cvsUserName
108 sh $scriptDir/cvscheckout.sh $bbtksource $generationdir $cvsUserName
109 sh $scriptDir/cvscheckout.sh $creamaracassource $generationdir $cvsUserName
110 sh $scriptDir/cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
111 sh $scriptDir/cvscheckout.sh $creabrukersource $generationdir $cvsUserName
112 sh $scriptDir/cvscheckout.sh $creaimagesource $generationdir $cvsUserName
113 sh $scriptDir/cvscheckout.sh $creacontourssource $generationdir $cvsUserName
114 sh $scriptDir/cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
115 sh $scriptDir/cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
116 sh $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
119 if [ $sourcesFrom = HTML ]
124 echo "Fix the name of the place with tar.gz file "
129 wget http://www.creatis.insa-lyon.fr/~davila/CreaTools/XXXXXXXX.tgz
139 # -------------------------
140 # start_point = 2 : CREA
141 #-------------------------
142 if [ $start_point -le 2 ]
145 # the following stupid test is used at debug time; Please don't remove!
149 sh cmakemod.sh $creasource $generationdir $installPrefix $buildType
150 sh creaVariables.sh $creasource $generationdir $docgeneration
151 sh compilemod.sh $buildType $creasource $generationdir
152 sh ctestmod.sh $creasource $generationdir
155 creadll=$generationdir/creatools_bin/creaBin
156 LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
160 # -------------------------
161 # start_point = 3 : BBTK
162 #-------------------------
163 if [ $start_point -le 3 ]
165 # the following stupid test is used at debug time; Please don't remove!
170 sh cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
171 sh bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
172 sh compilemod.sh $buildType $bbtksource $generationdir
173 sh ctestmod.sh $bbtksource $generationdir
176 bbtkdll=$generationdir/creatools_bin/bbtkBin
177 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
180 # -------------------------
181 # start_point = 4 : creaMaracasVisu
182 #-------------------------
183 if [ $start_point -le 4 ]
185 # the following stupid test is used at debug time; Please don't remove!
190 sh cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
191 sh creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
192 sh compilemod.sh $buildType $creamaracassource $generationdir
193 sh ctestmod.sh $creamaracassource $generationdir
196 creamaracasdll=$generationdir/creatools_bin/creamaracasBin
197 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
200 # -------------------------
201 # start_point = 5 : creaEnvironment
202 #-------------------------
203 if [ $start_point -le 5 ]
205 # the following stupid test is used at debug time; Please don't remove!
210 sh cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
211 sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
212 sh compilemod.sh $buildType $creaenvironmentsource $generationdir
213 sh ctestmod.sh $creaenvironmentsource $generationdir
216 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
217 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
220 # -------------------------
221 # start_point = 6 : creaBruker
222 #-------------------------
223 if [ $start_point -le 6 ]
225 # the following stupid test is used at debug time; Please don't remove!
230 sh cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
231 sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
232 sh compilemod.sh $buildType $creabrukersource $generationdir
233 sh ctestmod.sh $creabrukersource $generationdir
236 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
237 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
240 # -------------------------
241 # start_point = 7 : creaImageIO
242 #-------------------------
243 if [ $start_point -le 7 ]
245 # the following stupid test is used at debug time; Please don't remove!
250 sh cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
251 sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
252 sh compilemod.sh $buildType $creaimagesource $generationdir
253 sh ctestmod.sh $creaimagesource $generationdir
256 creaimagedll=$generationdir/creatools_bin/creaimageBin
257 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
260 # -------------------------
261 # start_point = 8 : creaContour
262 #-------------------------
263 if [ $start_point -le 8 ]
265 # the following stupid test is used at debug time; Please don't remove!
270 sh cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
271 sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
272 sh compilemod.sh $buildType $creacontourssource $generationdir
273 sh ctestmod.sh $creacontourssource $generationdir
276 # creacontourdll=$generationdir/creatools_bin/creacontoursBin
277 # LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
280 # -------------------------
281 # start_point = 9 : creaRigidRegistration
282 #-------------------------
283 if [ $start_point -le 9 ]
285 # the following stupid test is used at debug time; Please don't remove!
289 sh cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
290 sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
291 sh compilemod.sh $buildType $crearigidregistrationssource $generationdir
292 sh ctestmod.sh $crearigidregistrationssource $generationdir
295 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
296 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
299 # -------------------------
300 # start_point = 10 : bbtkGEditor
301 #-------------------------
302 if [ $start_point -le 10 ]
304 # the following stupid test is used at debug time; Please don't remove!
309 sh cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
310 sh bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
311 sh compilemod.sh $buildType $bbtkgeditorsource $generationdir
312 sh ctestmod.sh $bbtkgeditorsource $generationdir
315 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
316 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
319 # -------------------------
320 # start_point = 11 : creaTools
321 #-------------------------
322 if [ $start_point -le 11 ]
324 # the following stupid test is used at debug time; Please don't remove!
329 sh cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
330 sh creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
331 sh compilemod.sh $buildType $creatoolssource $generationdir
336 # sh ctestmod.sh $creatoolsbinary $generationdir
337 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
338 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH