3 # Set all local variables
6 source $PWD/configure.sh
29 mkdir $generationdir/creatools_source
30 mkdir $generationdir/creatools_bin
35 # --------------------------------
36 # start_point = 0 : remove everything that was created before
37 #---------------------------------
38 if [ $start_point -le 0 ]
40 # the following stupid test is used at debug time; Please don't remove!
45 mkdir $generationdir/creatools_bin
46 rm -rf creatools_source
47 mkdir $generationdir/creatools_source
51 # ----------------------------------
52 # start_point = 1 : Load all sources
53 #-----------------------------------
56 if [ $start_point -le 1 ]
62 if [ $sourcesFrom = CVS ]
64 sh $scriptDir/cvscheckout.sh $creasource $generationdir $cvsUserName
65 sh $scriptDir/cvscheckout.sh $bbtksource $generationdir $cvsUserName
66 sh $scriptDir/cvscheckout.sh $creamaracassource $generationdir $cvsUserName
67 sh $scriptDir/cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
68 sh $scriptDir/cvscheckout.sh $creabrukersource $generationdir $cvsUserName
69 sh $scriptDir/cvscheckout.sh $creaimagesource $generationdir $cvsUserName
70 sh $scriptDir/cvscheckout.sh $creacontourssource $generationdir $cvsUserName
71 sh $scriptDir/cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
72 sh $scriptDir/cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
73 sh $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
76 if [ $sourcesFrom = HTML ]
78 cd $generationdir/creatools_source
79 wwwtargz=http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/nightly/
81 wget $wwwtargz/crea.tgz
82 wget $wwwtargz/bbtk.tgz
83 wget $wwwtargz/creaMaracasVisu.tgz
84 wget $wwwtargz/creaEnvironment.tgz
85 wget $wwwtargz/creaBruker.tgz
86 wget $wwwtargz/creaImageIO.tgz
87 wget $wwwtargz/creaContours.tgz
88 wget $wwwtargz/creaRigidRegistration.tgz
89 wget $wwwtargz/bbtkGEditor.tgz
90 wget $wwwtargz/creaTools.tgz
94 tar xvzf creaMaracasVisu.tgz
95 tar xvzf creaEnvironment.tgz
96 tar xvzf creaBruker.tgz
97 tar xvzf creaImageIO.tgz
98 tar xvzf creaContours.tgz
99 tar xvzf creaRigidRegistration.tgz
100 tar xvzf bbtkGEditor.tgz
101 tar xvzf creaTools.tgz
110 # -------------------------
111 # start_point = 2 : CREA
112 #-------------------------
113 if [ $start_point -le 2 ]
116 # the following stupid test is used at debug time; Please don't remove!
120 sh $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
121 sh $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration
122 sh $scriptDir/compilemod.sh $buildType $creasource $generationdir
123 sh $scriptDir/ctestmod.sh $creasource $generationdir
126 creadll=$generationdir/creatools_bin/creaBin
127 LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
130 # -------------------------
131 # start_point = 3 : BBTK
132 #-------------------------
133 if [ $start_point -le 3 ]
135 # the following stupid test is used at debug time; Please don't remove!
140 sh $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
141 sh $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
142 sh $scriptDir/compilemod.sh $buildType $bbtksource $generationdir
143 sh $scriptDir/ctestmod.sh $bbtksource $generationdir
146 bbtkdll=$generationdir/creatools_bin/bbtkBin
147 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
150 # -------------------------
151 # start_point = 4 : creaMaracasVisu
152 #-------------------------
153 if [ $start_point -le 4 ]
155 # the following stupid test is used at debug time; Please don't remove!
160 sh $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
161 sh $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
162 sh $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir
163 sh $scriptDir/ctestmod.sh $creamaracassource $generationdir
166 creamaracasdll=$generationdir/creatools_bin/creamaracasBin
167 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
170 # -------------------------
171 # start_point = 5 : creaEnvironment
172 #-------------------------
173 if [ $start_point -le 5 ]
175 # the following stupid test is used at debug time; Please don't remove!
180 sh $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
181 sh $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
182 sh $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir
183 sh $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
186 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
187 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
190 # -------------------------
191 # start_point = 6 : creaBruker
192 #-------------------------
193 if [ $start_point -le 6 ]
195 # the following stupid test is used at debug time; Please don't remove!
200 sh $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
201 sh $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
202 sh $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir
203 sh $scriptDir/ctestmod.sh $creabrukersource $generationdir
206 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
207 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
210 # -------------------------
211 # start_point = 7 : creaImageIO
212 #-------------------------
213 if [ $start_point -le 7 ]
215 # the following stupid test is used at debug time; Please don't remove!
220 sh $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
221 sh $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
222 sh $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir
223 sh $scriptDir/ctestmod.sh $creaimagesource $generationdir
226 creaimagedll=$generationdir/creatools_bin/creaimageBin
227 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
230 # -------------------------
231 # start_point = 8 : creaContour
232 #-------------------------
233 if [ $start_point -le 8 ]
235 # the following stupid test is used at debug time; Please don't remove!
240 sh $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
241 sh $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
242 sh $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir
243 sh $scriptDir/ctestmod.sh $creacontourssource $generationdir
246 # creacontourdll=$generationdir/creatools_bin/creacontoursBin
247 # LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
250 # -------------------------
251 # start_point = 9 : creaRigidRegistration
252 #-------------------------
253 if [ $start_point -le 9 ]
255 # the following stupid test is used at debug time; Please don't remove!
259 sh $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
260 sh $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
261 sh $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir
262 sh $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
265 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
266 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
269 # -------------------------
270 # start_point = 10 : bbtkGEditor
271 #-------------------------
272 if [ $start_point -le 10 ]
274 # the following stupid test is used at debug time; Please don't remove!
279 sh $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
280 sh $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
281 sh $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir
282 sh $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
285 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
286 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
289 # -------------------------
290 # start_point = 11 : creaTools
291 #-------------------------
292 if [ $start_point -le 11 ]
294 # the following stupid test is used at debug time; Please don't remove!
299 sh $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
300 sh $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
301 sh $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir
306 # sh ctestmod.sh $creatoolsbinary $generationdir
307 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
308 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH