]> Creatis software - creaToolsTools.git/commitdiff
Forgot to add this one
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 6 Jan 2011 11:39:52 +0000 (11:39 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 6 Jan 2011 11:39:52 +0000 (11:39 +0000)
Install/scripts/uninstall.sh [new file with mode: 0644]

diff --git a/Install/scripts/uninstall.sh b/Install/scripts/uninstall.sh
new file mode 100644 (file)
index 0000000..ba4c017
--- /dev/null
@@ -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 
+