echo
if [ ! -f /etc/bashrc ]
then
- echo
- echo "You are probabely running under UBUNTU OS ?"
- echo "Troubles expected! (Hope NO!)"
- echo
- echo "Hit any key to continue"
- read a
- echo export ETC_BASHRC="/etc/bash.bashrc"
+ export ETC_BASHRC="/etc/bash.bashrc"
else
- echo export ETC_BASHRC="/etc/bashrc"
+ export ETC_BASHRC="/etc/bashrc"
fi
echo "the curently used Third Party libraries are NOT in $installPrefixThird but in :"
if [ ! -f /etc/bashrc ]
then
- echo
- echo "You are probabely running under UBUNTU OS ?"
- echo "Troubles expected! (Hope NO!)"
- echo
- echo "Hit any key to continue"
- read a
- echo export ETC_BASHRC="/etc/bash.bashrc"
+ export ETC_BASHRC="/etc/bash.bashrc"
else
- echo export ETC_BASHRC="/etc/bashrc"
+ export ETC_BASHRC="/etc/bashrc"
fi
# - remove line 'bash $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' if any
if [ ! -f /etc/bashrc ]
then
- echo
- echo "You are probabely running under UBUNTU OS ?"
- echo "Troubles expected!"
- echo
- echo "Hit any key to continue"scripts/CreaTools-uninstall.sh
- read a
- echo export ETC_BASHRC="/etc/bash.bashrc"
+ export ETC_BASHRC="/etc/bash.bashrc"
else
- echo export ETC_BASHRC="/etc/bashrc"
+ export ETC_BASHRC="/etc/bashrc"
fi
# revert /etc/bashrc to previous value
if [ ! -f /etc/bashrc ]
then
- echo
- echo "You are probabely running under UBUNTU OS ?"
- echo "Troubles expected!"
- echo
- echo "Hit any key to continue"scripts/CreaTools-uninstall.sh
- read a
- echo export ETC_BASHRC="/etc/bash.bashrc"
+ export ETC_BASHRC="/etc/bash.bashrc"
else
- echo export ETC_BASHRC="/etc/bashrc"
+ export ETC_BASHRC="/etc/bashrc"
fi
sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
# - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] && source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC
-
-
-