3 # Set all local variables
6 source $PWD/scripts/CreaTools-configure.sh
7 source $PWD/scripts/CreaTools-names.sh
10 echo $PWD/scripts/CreaTools-configure.sh
11 echo --generationdir--
13 echo --docgeneration--
15 echo --installPrefix--
45 mkdir $generationdir/creatools_source
46 mkdir $generationdir/creatools_bin
51 # --------------------------------
52 # start_point = 0 : remove everything that was created before
53 #---------------------------------
54 if [ $start_point -le 0 ]
56 # the following stupid test is used at debug time; Please don't remove!
61 mkdir $generationdir/creatools_bin
62 rm -rf creatools_source
63 mkdir $generationdir/creatools_source
67 # ----------------------------------
68 # start_point = 1 : Load all sources
69 #-----------------------------------
72 if [ $start_point -le 1 ]
78 if [ $sourcesFrom = CVS ]
80 sh $scriptDir/cvscheckout.sh $creasource $generationdir $cvsUserName
81 sh $scriptDir/cvscheckout.sh $bbtksource $generationdir $cvsUserName
82 sh $scriptDir/cvscheckout.sh $creamaracassource $generationdir $cvsUserName
83 sh $scriptDir/cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
84 sh $scriptDir/cvscheckout.sh $creabrukersource $generationdir $cvsUserName
85 sh $scriptDir/cvscheckout.sh $creaimagesource $generationdir $cvsUserName
86 sh $scriptDir/cvscheckout.sh $creacontourssource $generationdir $cvsUserName
87 sh $scriptDir/cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
88 sh $scriptDir/cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
89 sh $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
92 if [ $sourcesFrom = HTML ]
94 cd $generationdir/creatools_source
95 wwwtargz=http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/nightly/
97 wget $wwwtargz/crea.tgz
98 wget $wwwtargz/bbtk.tgz
99 wget $wwwtargz/creaMaracasVisu.tgz
100 wget $wwwtargz/creaEnvironment.tgz
101 wget $wwwtargz/creaBruker.tgz
102 wget $wwwtargz/creaImageIO.tgz
103 wget $wwwtargz/creaContours.tgz
104 wget $wwwtargz/creaRigidRegistration.tgz
105 wget $wwwtargz/bbtkGEditor.tgz
106 wget $wwwtargz/creaTools.tgz
110 tar xvzf creaMaracasVisu.tgz
111 tar xvzf creaEnvironment.tgz
112 tar xvzf creaBruker.tgz
113 tar xvzf creaImageIO.tgz
114 tar xvzf creaContours.tgz
115 tar xvzf creaRigidRegistration.tgz
116 tar xvzf bbtkGEditor.tgz
117 tar xvzf creaTools.tgz
126 # -------------------------
127 # start_point = 2 : CREA
128 #-------------------------
129 if [ $start_point -le 2 ]
132 # the following stupid test is used at debug time; Please don't remove!
136 sh $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
137 sh $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration
138 sh $scriptDir/compilemod.sh $buildType $creasource $generationdir
139 sh $scriptDir/ctestmod.sh $creasource $generationdir
142 creadll=$generationdir/creatools_bin/creaBin
143 LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
146 # -------------------------
147 # start_point = 3 : BBTK
148 #-------------------------
149 if [ $start_point -le 3 ]
151 # the following stupid test is used at debug time; Please don't remove!
156 sh $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
157 sh $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
158 sh $scriptDir/compilemod.sh $buildType $bbtksource $generationdir
159 sh $scriptDir/ctestmod.sh $bbtksource $generationdir
162 bbtkdll=$generationdir/creatools_bin/bbtkBin
163 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
166 # -------------------------
167 # start_point = 4 : creaMaracasVisu
168 #-------------------------
169 if [ $start_point -le 4 ]
171 # the following stupid test is used at debug time; Please don't remove!
176 sh $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
177 sh $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
178 sh $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir
179 sh $scriptDir/ctestmod.sh $creamaracassource $generationdir
182 creamaracasdll=$generationdir/creatools_bin/creamaracasBin
183 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
186 # -------------------------
187 # start_point = 5 : creaEnvironment
188 #-------------------------
189 if [ $start_point -le 5 ]
191 # the following stupid test is used at debug time; Please don't remove!
196 sh $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
197 sh $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
198 sh $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir
199 sh $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
202 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
203 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
206 # -------------------------
207 # start_point = 6 : creaBruker
208 #-------------------------
209 if [ $start_point -le 6 ]
211 # the following stupid test is used at debug time; Please don't remove!
216 sh $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
217 sh $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
218 sh $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir
219 sh $scriptDir/ctestmod.sh $creabrukersource $generationdir
222 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
223 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
226 # -------------------------
227 # start_point = 7 : creaImageIO
228 #-------------------------
229 if [ $start_point -le 7 ]
231 # the following stupid test is used at debug time; Please don't remove!
236 sh $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
237 sh $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
238 sh $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir
239 sh $scriptDir/ctestmod.sh $creaimagesource $generationdir
242 creaimagedll=$generationdir/creatools_bin/creaimageBin
243 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
246 # -------------------------
247 # start_point = 8 : creaContour
248 #-------------------------
249 if [ $start_point -le 8 ]
251 # the following stupid test is used at debug time; Please don't remove!
256 sh $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
257 sh $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
258 sh $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir
259 sh $scriptDir/ctestmod.sh $creacontourssource $generationdir
262 # creacontourdll=$generationdir/creatools_bin/creacontoursBin
263 # LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
266 # -------------------------
267 # start_point = 9 : creaRigidRegistration
268 #-------------------------
269 if [ $start_point -le 9 ]
271 # the following stupid test is used at debug time; Please don't remove!
275 sh $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
276 sh $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
277 sh $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir
278 sh $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
281 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
282 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
285 # -------------------------
286 # start_point = 10 : bbtkGEditor
287 #-------------------------
288 if [ $start_point -le 10 ]
290 # the following stupid test is used at debug time; Please don't remove!
295 sh $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
296 sh $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
297 sh $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir
298 sh $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
301 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
302 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
305 # -------------------------
306 # start_point = 11 : creaTools
307 #-------------------------
308 if [ $start_point -le 11 ]
310 # the following stupid test is used at debug time; Please don't remove!
315 sh $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
316 sh $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
317 sh $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir
322 # sh ctestmod.sh $creatoolsbinary $generationdir
323 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
324 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH