Line | |
---|
1 | if [ -f "setup.bash" ]; then
|
---|
2 | #This is Greenstone 2
|
---|
3 | . ./setup.bash > /dev/null
|
---|
4 | SEARCH4J_EXECUTABLE=$GSDLHOME/bin/$GSDLOS/search4j
|
---|
5 |
|
---|
6 | elif [ -f "gs2build/setup.bash" ]; then
|
---|
7 | #This is Greenstone 3
|
---|
8 | . ./gs2build/setup.bash > /dev/null
|
---|
9 | SEARCH4J_EXECUTABLE=./bin/search4j
|
---|
10 |
|
---|
11 | else
|
---|
12 | echo "Couldn't find setup.bash. This copy of Greenstone appears to be corrupt."
|
---|
13 | echo "To manually uninstall, please delete the entire Greenstone home folder."
|
---|
14 | exit
|
---|
15 | fi
|
---|
16 |
|
---|
17 | if [ $GSDLOS = linux ]; then
|
---|
18 | "$SEARCH4J_EXECUTABLE" -p ./packages/jre -l ./uninst.jar
|
---|
19 | elif [ $GSDLOS = darwin ]; then
|
---|
20 | "$SEARCH4J_EXECUTABLE" -p /System/Library/Frameworks/JavaVM.framework/Home -l ./uninst.jar
|
---|
21 | fi
|
---|
22 |
|
---|
23 | if [ -e "uninst.flag" ]; then
|
---|
24 |
|
---|
25 | rm -rf packages/jre &> /dev/null
|
---|
26 | rmdir packages &> /dev/null
|
---|
27 |
|
---|
28 | rm -rf bin &> /dev/null
|
---|
29 |
|
---|
30 | rm uninst.jar &> /dev/null
|
---|
31 | rm uninst.flag &> /dev/null
|
---|
32 | rm Uninstall.* &> /dev/null
|
---|
33 |
|
---|
34 | CONTENTS=`ls`
|
---|
35 | if [ -z "$CONTENTS" ]; then
|
---|
36 | GSDEL=`pwd`
|
---|
37 | cd ..
|
---|
38 | rmdir $GSDEL &> /dev/null
|
---|
39 | fi
|
---|
40 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.