From: jean-pierre roux Date: Fri, 25 Feb 2011 18:29:22 +0000 (+0000) Subject: Allow bbStudio to deal with installPrefix X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=419115a322115881921e17c838eda2f4f4592016;p=creaToolsTools.git Allow bbStudio to deal with installPrefix --- diff --git a/Linux/scripts/CreaTools-install.sh b/Linux/scripts/CreaTools-install.sh index 71bd297..da28921 100644 --- a/Linux/scripts/CreaTools-install.sh +++ b/Linux/scripts/CreaTools-install.sh @@ -38,10 +38,12 @@ then # - remove line 'bash $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' if any sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC + sed -i -e '/installPrefix=*/ d' $ETC_BASHRC # modify /etc/bashrc (we cannot modify .bashrc, since we switched as root) # - add line 'bash $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' echo source $installPrefix/share/creatools_base_library_config.sh >> $ETC_BASHRC + echo installPrefix=$installPrefix >> $ETC_BASHRC else echo echo "..ERROR.."