source: release-kits/shared/uninstaller/Uninstall.sh@ 17784

Last change on this file since 17784 was 17784, checked in by oranfry, 15 years ago

made the uninstaller compatible with greenstone3

File size: 430 bytes
Line 
1if [ -f "setup.bash" ]; then
2. ./setup.bash > /dev/null
3SEARCH4J_EXECUTABLE=$GSDLHOME/bin/$GSDLOS/search4j
4else
5SEARCH4J_EXECUTABLE=./bin/search4j
6fi
7
8"$SEARCH4J_EXECUTABLE" -p ./packages/jre -l ./uninst.jar
9
10if [ -e "uninst.flag" ]; then
11
12 rm -rf packages/jre
13 rmdir packages
14
15 rm -f bin
16
17 rm uninst.jar
18 rm uninst.flag
19 rm Uninstall.*
20
21 CONTENTS=`ls`
22 if [ -z "$CONTENTS" ]; then
23 GSDEL=`pwd`
24 cd ..
25 rmdir $GSDEL
26 fi
27fi
Note: See TracBrowser for help on using the repository browser.