1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # This software is governed by the CeCILL-B license under French law and
8 # abiding by the rules of distribution of free software. You can use,
9 # modify and/ or redistribute the software under the terms of the CeCILL-B
10 # license as circulated by CEA, CNRS and INRIA at the following URL
11 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
12 # or in the file LICENSE.txt.
14 # As a counterpart to the access to the source code and rights to copy,
15 # modify and redistribute granted by the license, users are provided only
16 # with a limited warranty and the software's author, the holder of the
17 # economic rights, and the successive licensors have only limited
20 # The fact that you are presently reading this means that you have had
21 # knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------
27 # Set all local variables
29 if [ -f $PWD/scripts/CreaTools-configure.sh ]
31 source $PWD/scripts/CreaTools-configure.sh
32 source $PWD/scripts/CreaTools-names.sh
35 echo $PWD/scripts/CreaTools-configure.sh
36 echo --generationdir--
38 echo --docgeneration--
40 echo --installPrefix--
59 echo "==================================================="
62 echo "YOU NEED TO RUN 'Configure' (0) First !"
63 echo "==================================================="
70 if [ ! -e $generationdir ]
72 mkdir -p $generationdir
73 mkdir -p $generationdir/creatools_source
74 mkdir -p $generationdir/creatools_bin
75 mkdir -p $generationdir/creatools_install
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!
89 rm -rf creatools_source
91 rm -rf creatools_install
92 mkdir -p $generationdir/creatools_source
96 # ----------------------------------
97 # start_point = 1 : Load all sources
98 #-----------------------------------
101 if [ $start_point -le 1 ]
107 if [ $sourcesFrom = GIT ] || [ $sourcesFrom = GIT-READ-ONLY ];
110 bash $scriptDir/gitclone.sh $creasource $generationdir $sourcesFrom
111 bash $scriptDir/gitclone.sh $bbtksource $generationdir $sourcesFrom
112 bash $scriptDir/gitclone.sh $creavtksource $generationdir $sourcesFrom
113 bash $scriptDir/gitclone.sh $creamaracassource $generationdir $sourcesFrom
114 bash $scriptDir/gitclone.sh $creaenvironmentsource $generationdir $sourcesFrom
115 bash $scriptDir/gitclone.sh $creabrukersource $generationdir $sourcesFrom
116 bash $scriptDir/gitclone.sh $creaimagesource $generationdir $sourcesFrom
117 bash $scriptDir/gitclone.sh $creacontourssource $generationdir $sourcesFrom
118 bash $scriptDir/gitclone.sh $crearigidregistrationssource $generationdir $sourcesFrom
119 bash $scriptDir/gitclone.sh $bbtkgeditorsource $generationdir $sourcesFrom
120 bash $scriptDir/gitclone.sh $creatoolssource $generationdir $sourcesFrom
121 bash $scriptDir/gitclone.sh $creaminitoolssource $generationdir $sourcesFrom
122 bash $scriptDir/gitclone.sh $creatoolstoolssource $generationdir $sourcesFrom
123 # bash $scriptDir/cvscheckout.sh $libidosource-ESRF $generationdir $cvsUserName
124 # mv $libidosource-ESRF $libidosource
126 cd $generationdir/creatools_source/$creasource
127 git checkout vtk8itk5wx3-macos
128 cd $generationdir/creatools_source/$bbtksource
129 git checkout vtk8itk5wx3-macos
130 cd $generationdir/creatools_source/$creavtksource
131 git checkout vtk8itk5wx3-macos
132 cd $generationdir/creatools_source/$creamaracassource
133 git checkout vtk8itk5wx3-macos
134 cd $generationdir/creatools_source/$creabrukersource
135 git checkout vtk8itk5wx3-macos
136 cd $generationdir/creatools_source/$creaimagesource
137 git checkout vtk8itk5wx3-macos
138 cd $generationdir/creatools_source/$creacontourssource
139 git checkout vtk8itk5wx3-macos
140 cd $generationdir/creatools_source/$crearigidregistrationssource
141 git checkout vtk8itk5wx3-macos
142 cd $generationdir/creatools_source/$bbtkgeditorsource
143 git checkout vtk8itk5wx3-macos
144 cd $generationdir/creatools_source/$creatoolssource
145 git checkout vtk8itk5wx3-macos
146 cd $generationdir/creatools_source/$creaenvironmentsource
147 git checkout vtk8itk5wx3-macos
148 cd $generationdir/creatools_source/$creaminitoolssource
149 git checkout vtk8itk5wx3-macos
150 cd $generationdir/creatools_source/$creatoolstoolssource
151 git checkout vtk8itk5wx3-macos
154 if [ $sourcesFrom = HTML ]
156 cd $generationdir/creatools_source
157 wwwtargz=http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/nightly/
158 wget $wwwtargz/crea.tgz
159 wget $wwwtargz/bbtk.tgz
160 wget $wwwtargz/creaVtk.tgz
161 wget $wwwtargz/creaMaracasVisu.tgz
162 wget $wwwtargz/creaEnvironment.tgz
163 wget $wwwtargz/creaBruker.tgz
164 wget $wwwtargz/creaImageIO.tgz
165 wget $wwwtargz/creaContours.tgz
166 wget $wwwtargz/creaRigidRegistration.tgz
167 wget $wwwtargz/bbtkGEditor.tgz
168 wget $wwwtargz/creaTools.tgz
169 wget $wwwtargz/creaMiniTools.tgz
171 if [ $OperatingSystem = "MacOS" ]
173 curl $wwwtargz/crea.tgz
174 curl $wwwtargz/bbtk.tgz
175 curl $wwwtargz/creaVtk.tgz
176 curl $wwwtargz/creaMaracasVisu.tgz
177 curl $wwwtargz/creaEnvironment.tgz
178 curl $wwwtargz/creaBruker.tgz
179 curl $wwwtargz/creaImageIO.tgz
180 curl $wwwtargz/creaContours.tgz
181 curl $wwwtargz/creaRigidRegistration.tgz
182 curl $wwwtargz/bbtkGEditor.tgz
183 curl $wwwtargz/creaTools.tgz
184 curl $wwwtargz/creaMiniTools.tgz
189 tar xvzf creaMaracasVisu.tgz
190 tar xvzf creaEnvironment.tgz
191 tar xvzf creaBruker.tgz
192 tar xvzf creaImageIO.tgz
193 tar xvzf creaContours.tgz
194 tar xvzf creaRigidRegistration.tgz
195 tar xvzf bbtkGEditor.tgz
196 tar xvzf creaTools.tgz
197 tar xvzf creaMiniTools.tgz