|
Revision 1035, 0.9 KB
(checked in by kris, 13 months ago)
|
|
Initial import of OpenOffice? English module, will add i18n module once
the bug with OO 2.3.1 on KDE is fixed
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # Filename: PBI.RemoveScript.sh |
|---|
| 3 | # Place any custom removal code here. |
|---|
| 4 | # This script will be run before your program is deleted. |
|---|
| 5 | # ${1} is the directory name. |
|---|
| 6 | # ${2} is the username of person performing the deletion. |
|---|
| 7 | # TIP: 'kdialog' should be used for user interaction. |
|---|
| 8 | ######################################### |
|---|
| 9 | |
|---|
| 10 | rm -f /usr/local/openoffice.org-* |
|---|
| 11 | rm -f /usr/local/bin/openoffice.org-* |
|---|
| 12 | rm -f /usr/local/bin/sbase |
|---|
| 13 | rm -f /usr/local/bin/sdraw |
|---|
| 14 | rm -f /usr/local/bin/scalc |
|---|
| 15 | rm -f /usr/local/bin/simpress |
|---|
| 16 | rm -f /usr/local/bin/smath |
|---|
| 17 | rm -f /usr/local/bin/swriter |
|---|
| 18 | |
|---|
| 19 | if [ ! -z "$DISPLAY" ] |
|---|
| 20 | then |
|---|
| 21 | # Ask if we want to remove the user profiles |
|---|
| 22 | kdialog --yesno "Do you want to remove OpenOffice user settings?" --title "Remove user settings" |
|---|
| 23 | if [ "$?" = "0" ] |
|---|
| 24 | then |
|---|
| 25 | cd /home |
|---|
| 26 | for i in `ls` |
|---|
| 27 | do |
|---|
| 28 | if [ -e "/home/${i}/.openoffice.org2" ] |
|---|
| 29 | then |
|---|
| 30 | rm -rf /home/${i}/.openoffice.org2 |
|---|
| 31 | fi |
|---|
| 32 | done |
|---|
| 33 | fi |
|---|
| 34 | fi |
|---|