From: jean-pierre roux Date: Fri, 12 Nov 2010 13:47:15 +0000 (+0000) Subject: create and chmod the file *before* echo >> X-Git-Tag: Creatools2-0-3.creaToolsTools2-0-3.17Feb2011~93 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4df7f141683c262c583c3e731037e2248b945196;p=creaToolsTools.git create and chmod the file *before* echo >> --- diff --git a/Install/scripts/All.sh b/Install/scripts/All.sh index acb3832..b42e495 100644 --- a/Install/scripts/All.sh +++ b/Install/scripts/All.sh @@ -247,9 +247,11 @@ fi # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH - CREATOOLS_INSTALL_DIR=$installPrefix -sudo rm $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh +sudo rm $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh +sudo touch $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh +sudo chmod 666 $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh + sudo echo export PATH=$PATH:$CREATOOLS_INSTALL_DIR/bin >> $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh sudo echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$THIRDPARTY_INSTALL_DIR/lib/creatools >> $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh diff --git a/Install_ThirdParty/scripts/install_thirdparty_all.sh b/Install_ThirdParty/scripts/install_thirdparty_all.sh index f4f7aeb..658c82b 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_all.sh +++ b/Install_ThirdParty/scripts/install_thirdparty_all.sh @@ -175,7 +175,9 @@ fi #deal with create creatools_third_party_libraries_config.sh THIRDPARTY_INSTALL_DIR=$installPrefix/thirdparty_install -sudo rm $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh +sudo rm $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh +sudo touch $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh +sudo chmod 666 $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh sudo echo export PATH=$PATH:$THIRDPARTY_INSTALL_DIR/bin >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh sudo echo export VTK_DIR=$THIRDPARTY_INSTALL_DIR/lib/vtk-5.6 >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh