root/tags/lgt2311/scripts/uninstall.sh

Revision 4000, 1.8 KB (checked in by pmoura, 12 months ago)

Updated copyright string.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3## ================================================================
4## Logtalk - Open source object-oriented logic programming language
5## Release 2.31.1
6##
7## Copyright (c) 1998-2008 Paulo Moura.  All Rights Reserved.
8## ================================================================
9
10echo
11echo "Uninstalling Logtalk system-level files..."
12echo
13
14if ! [ "$LOGTALKHOME" ]; then
15    echo "The environment variable LOGTALKHOME should be defined first!"
16    echo "Trying default Logtalk installation directories..."
17    if [ -d "/usr/local/share/logtalk" ]; then
18        LOGTALKHOME=/usr/local/share/logtalk
19        echo "Using Logtalk installation at \"/usr/local/share/logtalk\""
20    elif [ -d "/usr/share/logtalk" ]; then
21        LOGTALKHOME=/usr/share/logtalk
22        echo "Using Logtalk installation at \"/usr/share/logtalk\""
23    elif [ -d "/opt/local/share/logtalk" ]; then
24        LOGTALKHOME=/opt/local/share/logtalk
25        echo "Using Logtalk installation at \"/opt/local/share/logtalk\""
26    elif [ -d "/opt/share/logtalk" ]; then
27        LOGTALKHOME=/opt/share/logtalk
28        echo "Using Logtalk installation at \"/opt/share/logtalk\""
29    else
30        echo "Unable to locate Logtalk installation directory!"
31        echo
32        exit 1
33    fi
34    elif ! [ -d "$LOGTALKHOME" ]; then
35        echo "The environment variable LOGTALKHOME points to a non-existing directory!"
36        echo "Its current value is: $LOGTALKHOME"
37        echo "The variable must be set to your Logtalk installation directory!"
38        echo
39        exit 1
40fi
41
42cd $LOGTALKHOME/..
43rm -rf lgt2311
44rm -f logtalk
45cd ../bin
46rm -f bplgt
47rm -f ciaolgt
48rm -f cplgtdirs
49rm -f cxlgt
50rm -f eclipselgt
51rm -f gplgt
52rm -f lgt2html
53rm -f lgt2pdf
54rm -f lgt2xml
55rm -f plclgt
56rm -f qplgt
57rm -f sicstuslgt
58rm -f swilgt
59rm -f xsblgt
60rm -f xsbmtlgt
61rm -f yaplgt
62
63echo "Logtalk system-level uninstall completed. For uninstalling user-level"
64echo "Logtalk files simply delete the LOGTALKUSER directories."
65echo
Note: See TracBrowser for help on using the browser.