Last change
on this file since 17807 was 17794, checked in by max, 15 years ago |
Fixed some bugs for the Uninstaller on the darwin platform and with Greenstone3.
|
File size:
672 bytes
|
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 | else
|
---|
6 | #This is Greenstone 3
|
---|
7 | . ./gs2build/setup.bash > /dev/null
|
---|
8 | SEARCH4J_EXECUTABLE=./bin/search4j
|
---|
9 | fi
|
---|
10 |
|
---|
11 | if [ $GSDLOS = linux ]; then
|
---|
12 | "$SEARCH4J_EXECUTABLE" -p ./packages/jre -l ./uninst.jar
|
---|
13 | elif [ $GSDLOS = darwin ]; then
|
---|
14 | "$SEARCH4J_EXECUTABLE" -p /System/Library/Frameworks/JavaVM.framework/Home -l ./uninst.jar
|
---|
15 | fi
|
---|
16 |
|
---|
17 | if [ -e "uninst.flag" ]; then
|
---|
18 |
|
---|
19 | rm -rf packages/jre
|
---|
20 | rmdir packages
|
---|
21 |
|
---|
22 | rm -rf bin
|
---|
23 |
|
---|
24 | rm uninst.jar
|
---|
25 | rm uninst.flag
|
---|
26 | rm Uninstall.*
|
---|
27 |
|
---|
28 | CONTENTS=`ls`
|
---|
29 | if [ -z "$CONTENTS" ]; then
|
---|
30 | GSDEL=`pwd`
|
---|
31 | cd ..
|
---|
32 | rmdir $GSDEL
|
---|
33 | fi
|
---|
34 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.