#!/bin/bash
-echo "in uninstall"
-if [ $UID = 0 ]
-then
+ echo "in uninstall"
+ if [ $UID = 0 ]
+ then
# Set all local variables
source $PWD/scripts/CreaTools-configure.sh
cd ../lib
# this one is riskless
+echo "rm lib's"
rm -rf creatools
cd ../share
# this one is riskless
+ echo "rm share's"
rm -rf bbtk creaImageIO creaNewProject creaContours creaMaracasVisu
rm -f creatools_base_library_config.sh
else
export ETC_BASHRC="/etc/bashrc"
fi
-
+ echo "revert $ETC_BASHRC to previous value"
# revert /etc/bashrc to previous value
# - remove line 'bash $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh'
sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC