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 # ------------------------------------------------------------------------
30 # Set all local variables
31 source $PWD/scripts/CreaTools-configure.sh
32 source $PWD/scripts/CreaTools-names.sh
34 if [ -e $generationdir ]
36 if [ ! -e $generationdir/creatools_install ]
38 mkdir $generationdir/creatools_install
43 echo "==================================================="
46 echo "You MUST load the Creatools sources before (use 2.2)!"
47 echo "==================================================="
56 #create creatools_base_library_config.sh at the very begining, so we can write "export xxx_BIN=..." inside installmod.sh. JPRx 3 mars 2011
58 ##EED if [ -f $installPrefix/share/creatools_base_library_config.sh ]
60 ##EED rm $installPrefix/share/creatools_base_library_config.sh
62 ##EED touch $installPrefix/share/creatools_base_library_config.sh
66 # Install creatools as user (no longer as root) // JPR 2/5/2011
68 # - remove line 'bash $installPrefix/creatools_install/share/creatools_base_library_config.sh' if any
69 sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
70 sed -i -e '/installPrefixtmp*/ d' $ETC_BASHRC
73 mkdir $installPrefix/share
74 echo '## This file is call from .bashrc' > $installPrefix/share/creatools_base_library_config.sh
75 bash installmodBash.sh $installPrefix
78 # modify /etc/bashrc (we cannot modify .bashrc, since we switched as root)
79 # - add line 'bash $installPrefix/creatools_install/share/creatools_base_library_config.sh'
81 bash installmod.sh $buildType $creasource $generationdir $installPrefix
82 bash installmod.sh $buildType $bbtksource $generationdir $installPrefix
83 bash installmod.sh $buildType $creavtksource $generationdir $installPrefix
84 bash installmod.sh $buildType $creamaracassource $generationdir $installPrefix
85 bash installmod.sh $buildType $creaenvironmentsource $generationdir $installPrefix
86 bash installmod.sh $buildType $creabrukersource $generationdir $installPrefix
87 bash installmod.sh $buildType $creaimagesource $generationdir $installPrefix
88 bash installmod.sh $buildType $creacontourssource $generationdir $installPrefix
89 bash installmod.sh $buildType $crearigidregistrationssource $generationdir $installPrefix
90 bash installmod.sh $buildType $bbtkgeditorsource $generationdir $installPrefix
91 bash installmod.sh $buildType $creatoolssource $generationdir $installPrefix
92 bash installmod.sh $buildType $creaminitoolssource $generationdir $installPrefix
93 # bash installmod.sh $buildType $libidosource $generationdir $installPrefix
95 #export as well bbPackages_DIR // JPR 25 Mai 2011
97 bash installmodNomake.sh $buildType appli $generationdir $installPrefix
98 bash installmodNomake.sh $buildType creaMiniToolsBase $generationdir $installPrefix
99 bash installmodNomake.sh $buildType demo $generationdir $installPrefix
100 bash installmodNomake.sh $buildType gdcmvtk $generationdir $installPrefix
101 bash installmodNomake.sh $buildType itk $generationdir $installPrefix
102 bash installmodNomake.sh $buildType itkvtk $generationdir $installPrefix
103 bash installmodNomake.sh $buildType qt $generationdir $installPrefix
104 bash installmodNomake.sh $buildType std $generationdir $installPrefix
105 bash installmodNomake.sh $buildType toolsbbtk $generationdir $installPrefix
106 bash installmodNomake.sh $buildType vtk $generationdir $installPrefix
107 bash installmodNomake.sh $buildType wx $generationdir $installPrefix
108 bash installmodNomake.sh $buildType wxvtk $generationdir $installPrefix
110 #EED I don't know why this works here and not after the chmod 755
111 #EED bash installmodBash.sh $installPrefix
113 echo "===================================================in CreaTools-install.sh ETC_BASHRC : " $ETC_BASHRC
114 echo installPrefixtmp=$installPrefix >> $ETC_BASHRC
115 echo '[ -f "$installPrefixtmp/share/creatools_base_library_config.sh" ] && source $installPrefixtmp/share/creatools_base_library_config.sh $installPrefixtmp' >> $ETC_BASHRC
117 source $installPrefix/share/creatools_base_library_config.sh $installPrefix
120 ##EED echo "==================================================="
121 ##EED echo " Regenerate Package doc"
122 ##EED $installPrefix/bin/bbRegeneratePackageDoc -a -q
123 ##EED echo " Regenerate Boxes list"
124 ##EED $installPrefix/bin/bbRegenerateBoxesLists -q
125 ##EED echo "==================================================="
131 # echo "==================================================="
134 # echo "YOU NEED TO RUN THIS ONE AS root"
135 # echo "==================================================="