From 750b8f9a094892630825e223e3e40cae481c56a4 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Thu, 6 Jan 2011 11:39:52 +0000 Subject: [PATCH] Forgot to add this one --- Install/scripts/uninstall.sh | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Install/scripts/uninstall.sh diff --git a/Install/scripts/uninstall.sh b/Install/scripts/uninstall.sh new file mode 100644 index 0000000..ba4c017 --- /dev/null +++ b/Install/scripts/uninstall.sh @@ -0,0 +1,45 @@ +#!/bin/sh + + +if [ $UID = 0 ] +then + # Set all local variables + source $PWD/configure.sh + + cd $installPrefix + + cd bin + # Maybe too much brute! (What if anything else starts with 'bb' or 'crea'?) + rm -f bb* + rm -f crea* + + cd ../include + # Maybe too much brute! (What if anything else starts with 'bb' or 'crea'?) + rm -rf bb* + rm -rf crea* + + cd ../lib + # this one is riskless + rm -rf creatools + + cd ../share + # this one is riskless + rm -rf bbtk creaImageIO creaNewProject creaContours creaMaracasVisu + rm -f creatools_base_library_config.sh + + # revert /etc/bashrc to previous value + # - remove line 'sh $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh' + sed -i -e '/.*creatools_base_library_config.*/ d' /etc/bashrc + +else + echo + echo "..ERROR.." + echo "===================================================" + echo "REMEMBER !" + echo "" + echo "YOU NEED TO RUN THIS ONE AS root" + echo "===================================================" + echo + echo +fi + -- 2.47.1