3 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
7 echo "==================================================="
10 echo "YOU NEED TO RUN 'Configure' (0) First !"
11 echo "==================================================="
17 source $PWD/scripts/CreaTools-configure.sh
19 #deal with create creatools_third_party_libraries_config.sh
21 if [ -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
23 rm $installPrefixThird/share/creatools_third_party_library_config.sh
26 if [ ! -e $installPrefixThird/share ]
28 mkdir $installPrefixThird/share
30 touch $installPrefixThird/share/creatools_third_party_library_config.sh
31 chmod 755 $installPrefixThird/share/creatools_third_party_library_config.sh
33 echo export PATH='$'PATH:$installPrefixThird/bin >> $installPrefixThird/share/creatools_third_party_library_config.sh
34 echo export VTK_DIR=$installPrefixThird/lib/vtk-5.6 >> $installPrefixThird/share/creatools_third_party_library_config.sh
35 echo export ITK_DIR=$installPrefixThird/lib/InsightToolkit >> $installPrefixThird/share/creatools_third_party_library_config.sh
36 echo export GDCM_DIR=$installPrefixThird/lib/gdcm >> $installPrefixThird/share/creatools_third_party_library_config.sh
37 echo export TTH=$installPrefixThird/bin/tth >> $installPrefixThird/share/creatools_third_party_library_config.sh
39 if [ $OperatingSystem = "MacOS" ]
41 echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$GDCM_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
42 echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$ITK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
43 echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$VTK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
45 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$GDCM_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
46 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$ITK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
47 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
50 case "$OperatingSystem" in
52 export ETC_BASHRC=$HOME/.bashrc
55 export ETC_BASHRC=$HOME/.bashrc
58 export ETC_BASHRC=$HOME/.profile
62 sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
63 sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
66 # - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
67 echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
68 echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] && source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC
72 chown -R $loginUserName $generationdir
73 chgrp -R $loginGroupName $generationdir