summaryrefslogtreecommitdiff
path: root/uninstall
diff options
context:
space:
mode:
authorscuri <scuri>2011-02-26 02:27:09 +0000
committerscuri <scuri>2011-02-26 02:27:09 +0000
commit0daf9f7ba7b50fea5c9764cf0dc05ad76c005716 (patch)
tree6072aa3f3f149c9b73e14b4ae82de8a856d25435 /uninstall
parent79e4bd4772219be603c4f5aa98b98c6c83e0ccbb (diff)
*** empty log message ***
Diffstat (limited to 'uninstall')
-rw-r--r--uninstall50
1 files changed, 50 insertions, 0 deletions
diff --git a/uninstall b/uninstall
new file mode 100644
index 0000000..0f554cf
--- /dev/null
+++ b/uninstall
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+# Include TEC_UNAME definitions
+source tec_uname
+
+echo ' '
+echo ' This script will uninstall both the >>Run Time<< libraries'
+echo ' and the >>Development<< files from the system'
+echo ' It was tested in Ubuntu and in Fedora.'
+echo ' '
+echo ' Must be run with "sudo" at the library folder, or install will fail:'
+echo ' sudo ./uninstall'
+echo ' '
+
+Remove_Lua_Links()
+{
+ LUA_LIB=$TEC_SYSTEM_LIB/lua/5.1
+ rm -fv $LUA_LIB/$1lua*.so
+}
+
+Remove_Extra_CD()
+{
+ # Do NOT remove FreeType
+
+ rm -fv $TEC_SYSTEM_LIB/libpdflib.a
+ rm -fv $TEC_SYSTEM_LIB/libftgl.a
+ rm -fv $TEC_SYSTEM_LIB/libpdflib.so
+ rm -fv $TEC_SYSTEM_LIB/libftgl.so
+}
+
+Remove_From_System()
+{
+ rm -frv $TEC_SYSTEM_INC/$1
+ rm -fv $TEC_SYSTEM_LIB/lib$1*.a
+ rm -fv $TEC_SYSTEM_LIB/lib$1*.so
+
+ if [ $1 == cd ]; then
+ Remove_Extra_CD
+ fi
+
+ Remove_Lua_Links $1
+}
+
+# From tec_uname script
+ComputeTecUname
+ComputeSystemPaths
+#PrintInfo
+
+Pause
+Remove_From_System cd