]> Creatis software - creaToolsTools.git/blob - ctest/dashboard/All.sh
66aa88dfaaf3a84a6970a0666e79ca10061c9927
[creaToolsTools.git] / ctest / dashboard / All.sh
1 #!/bin/sh
2
3 #if [$# = 0]
4 #then
5 echo "Use it as :"
6 echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <VTKdir> <installPrefix>"
7 echo " "
8 echo "ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory"
9 #exit 0
10 #fi
11
12 #if [$# != 5]
13 #then 
14 #echo "use it as           sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory"
15 #exit 0
16 #fi
17
18 # @echo off
19
20 #allow user to choose the generation dir
21 #allow user to choose to generate the doc or not
22
23 generationdir=$1
24 cvsUserName=$3
25 VTKdir=$4
26 installPrefix=$5
27
28 mkdir $generationdir
29 mkdir $generationdir/tmpCreaTools_INSTALL
30
31
32 # buildtype, useless for Linux; let here for compatibility purpose
33  buildtype=Release
34
35  creasource=crea
36  bbtksource=bbtk
37  creamaracassource=creaMaracasVisu
38  creaenvironmentsource=creaEnvironment
39  creabrukersource=creaBruker
40  creaimagesource=creaImageIO
41  creacontourssource=creaContours
42  crearigidregistrationssource=creaRigidRegistration
43  bbtkgeditorsource=bbtkGEditor
44  creatoolssource=creaTools
45
46 if [ true = true ]
47 then
48
49 rm -rf $generationdir/creaBin
50 rm -rf $generationdir/bbtkBin
51 rm -rf $generationdir/creamaracasBin
52 rm -rf $generationdir/creaEnvironmentBin
53 rm -rf $generationdir/creaBrukerBin
54 rm -rf $generationdir/creaImageIOBin
55 rm -rf $generationdir/creaContoursBin
56 rm -rf $generationdir/creaRigidRegistrationBin
57 rm -rf $generationdir/bbtkGEditorBin
58 rm -rf $generationdir/creaToolsBin
59
60 sh cvscheckout.sh $creasource                   $generationdir $cvsUserName
61 sh cvscheckout.sh $bbtksource                   $generationdir $cvsUserName
62 sh cvscheckout.sh $creamaracassource            $generationdir $cvsUserName
63 sh cvscheckout.sh $creaenvironmentsource        $generationdir $cvsUserName
64 sh cvscheckout.sh $creabrukersource             $generationdir $cvsUserName
65 sh cvscheckout.sh $creaimagesource              $generationdir $cvsUserName
66 sh cvscheckout.sh $creacontourssource           $generationdir $cvsUserName
67 sh cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
68 sh cvscheckout.sh $bbtkgeditorsource            $generationdir $cvsUserName
69 sh cvscheckout.sh $creatoolssource              $generationdir $cvsUserName
70
71 fi
72
73 # CREA
74 #if [ true = false ]
75 #then
76  sh cmakemod.sh                    $creasource $generationdir $VTKdir $installPrefix
77  sh creaVariables.sh               $creasource $generationdir $docgeneration
78  sh compilemod.sh     $buildtype   $creasource $generationdir 
79  sh ctestmod.sh                    $creasource $generationdir
80 #fi
81
82     
83  creadll=$generationdir/tmpCreaTools_INSTALL/creaBin
84  LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
85  
86 # echo "=in All.sh, out of crea ============================================================================ $LD_LIBRARY_PATH"
87
88
89 #if [ true = false ]
90 #then
91 # BBTK
92  sh cmakemod.sh              $bbtksource $generationdir $VTKdir $installPrefix
93 # echo "============================BBTK out of cmakemod "
94  
95  sh bbtkVariables.sh         $bbtksource $generationdir $docgeneration
96 # echo "============================BBTK out of bbtkVariables " 
97  
98  sh compilemod.sh $buildtype $bbtksource $generationdir 
99  echo "============================BBTK out of compilemod " 
100
101  sh ctestmod.sh              $bbtksource $generationdir
102 #fi
103
104  bbtkdll=$generationdir/tmpCreaTools_INSTALL/bbtkBin
105  LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
106
107
108 #if [ true = false ]
109 #then
110  creaMaracasVisu
111 # echo "========================================================================================start creaMaracasVisu " 
112  sh cmakemod.sh                        $creamaracassource $generationdir $VTKdir $installPrefix
113 # echo "=======================================================================================creaMaracasVisu out of cmakemod "
114  
115  sh creaMaracasVariables.sh            $creamaracassource $generationdir $docgeneration
116  sh compilemod.sh           $buildtype $creamaracassource $generationdir
117  sh ctestmod.sh                        $creamaracassource $generationdir
118 #fi
119  creamaracasdll=$generationdir/tmpCreaTools_INSTALL/creamaracasBin
120  LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
121
122
123
124 #if [ true = false ]
125 #then
126 # creaEnvironment
127  sh cmakemod.sh                 $creaenvironmentsource $generationdir $VTKdir $installPrefix
128
129  sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
130  sh compilemod.sh $buildtype    $creaenvironmentsource $generationdir
131  sh ctestmod.sh                 $creaenvironmentsource $generationdir
132 #fi
133  creaenvironmentdll=$generationdir/tmpCreaTools_INSTALL/creaenvironmentBin
134  LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
135
136 #if [ true = false ]
137 #then
138 # creaBruker
139  sh cmakemod.sh                 $creabrukersource $generationdir $VTKdir $installPrefix
140  sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration
141 #fi
142
143  sh compilemod.sh $buildtype    $creabrukersource  $generationdir
144 # echo "creaBruker : out of compilemod.sh; stop here, now!"
145 # exit 0
146  sh ctestmod.sh                 $creabrukersource $creabinfolder
147  creabrukerdll=$generationdir/tmpCreaTools_INSTALL/creabrukerBin
148  LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
149
150 # creaImageIO
151  sh cmakemod.sh              $creaimagesource $generationdir $VTKdir $installPrefix
152  sh creaImageIOVariables.sh  $creaimagesource $generationdir $docgeneration
153  sh compilemod.sh $buildtype $creaimagesource $generationdir
154  sh ctestmod.sh              $creaimagesource $generationdir
155  creaimagedll=$generationdir/tmpCreaTools_INSTALL/creaimageBin
156  LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
157
158 # creaContours
159  sh cmakemod.sh              $creacontourssource $generationdir $VTKdir $installPrefix
160  sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
161  sh compilemod.sh $buildtype $creacontourssource $generationdir
162  sh ctestmod.sh              $creacontourssource $generationdir
163 # creacontourdll=$generationdir/tmpCreaTools_INSTALL/creacontoursBin
164 # LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
165
166 # creaRigidRegistration
167  sh cmakemod.sh                       $crearigidregistrationssource $generationdir $VTKdir $installPrefix
168  sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
169  sh compilemod.sh $buildtype          $crearigidregistrationssource $generationdir
170  sh ctestmod.sh                       $crearigidregistrationssource $generationdir
171 # crearigidregistrationdll=$generationdir/tmpCreaTools_INSTALL/crearigidregistrationBin
172 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
173
174 # bbtkGEditor
175  sh cmakemod.sh              $bbtkgeditorsource $generationdir $VTKdir $installPrefix
176  sh bbtkGEditorVariables.sh  $bbtkgeditorsource $generationdir $docgeneration
177  sh compilemod.sh $buildtype $bbtkgeditorsource $generationdir
178  sh ctestmod.sh              $bbtkgeditorsource $generationdir
179 # bbtkgeditordll=$generationdir/tmpCreaTools_INSTALL/bbtkgeditorBin
180 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
181
182 # creaTools
183  sh cmakemod.sh                    $creatoolssource $generationdir $VTKdir $installPrefix
184  sh creaToolsVariables.sh          $creatoolssource $generationdir $docgeneration
185  sh compilemod.sh $buildtype       $creatoolssource $generationdir
186 # sh ctestmod.sh $creatoolsbinary $generationdir
187 #  creatoolsdll=$generationdir/tmpCreaTools_INSTALL/creatoolsBin
188 #  LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
189
190 # shutdown /s
191 # exit /b