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
18 echo "=================================== in ThirdParty-install-Finalize.sh ETC_BASHRC : " $ETC_BASHRC
20 # /// \TODO move theese ones upper in the process! JPR
22 export GDCM_DIR=$installPrefixThird/lib/gdcm/
23 export VTK_DIR=$installPrefixThird/lib/vtk-5.6/
24 export ITK_DIR=$installPrefixThird/lib/InsightToolkit/
27 #deal with create creatools_third_party_libraries_config.sh
28 echo "=========================================================installPrefixThird "$installPrefixThird
29 if [ -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
31 rm $installPrefixThird/share/creatools_third_party_library_config.sh
34 if [ ! -e $installPrefixThird/share ]
36 mkdir $installPrefixThird/share
38 touch $installPrefixThird/share/creatools_third_party_library_config.sh
39 chmod 755 $installPrefixThird/share/creatools_third_party_library_config.sh
41 echo export PATH='$'PATH:$installPrefixThird/bin >> $installPrefixThird/share/creatools_third_party_library_config.sh
42 echo export VTK_DIR=$installPrefixThird/lib/vtk-5.6 >> $installPrefixThird/share/creatools_third_party_library_config.sh
43 echo export ITK_DIR=$installPrefixThird/lib/InsightToolkit >> $installPrefixThird/share/creatools_third_party_library_config.sh
44 echo export GDCM_DIR=$installPrefixThird/lib/gdcm >> $installPrefixThird/share/creatools_third_party_library_config.sh
45 echo export TTH=$installPrefixThird/bin/tth >> $installPrefixThird/share/creatools_third_party_library_config.sh
47 if [ $OperatingSystem = "MacOS" ]
49 echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$GDCM_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
50 echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$ITK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
51 echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$VTK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
53 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$GDCM_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
54 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$ITK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
55 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
58 sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
59 sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
62 # - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
64 echo "====================================================ETC_BASHRC " $ETC_BASHRC
65 echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
66 echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] && source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC
69 chown -R $loginUserName $generationdir
70 chgrp -R $loginGroupName $generationdir