From: jean-pierre roux Date: Thu, 6 Jan 2011 11:39:52 +0000 (+0000) Subject: Forgot to add this one X-Git-Tag: Creatools2-0-3.creaToolsTools2-0-3.17Feb2011~51 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=750b8f9a094892630825e223e3e40cae481c56a4;p=creaToolsTools.git Forgot to add this one --- 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 +