|
Revision 1055, 0.8 KB
(checked in by gonzalo, 13 months ago)
|
|
Open Arena added
|
-
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 | rm -fR /usr/local/bin/openarena |
|---|
| 10 | rm -fR /usr/local/bin/openarena-smp |
|---|
| 11 | rm -fR /usr/local/bin/openarenaded |
|---|
| 12 | rm -fR /usr/local/share/openarena |
|---|
| 13 | |
|---|
| 14 | if [ ! -z "$DISPLAY" ] |
|---|
| 15 | then |
|---|
| 16 | # Ask if we want to remove the user profiles |
|---|
| 17 | kdialog --yesno "Do you want to remove Open Arena user settings?" --title "Remove user settings" |
|---|
| 18 | if [ "$?" = "0" ] |
|---|
| 19 | then |
|---|
| 20 | cd /home |
|---|
| 21 | for i in `ls` |
|---|
| 22 | do |
|---|
| 23 | if [ -e "/home/${i}/.openarena" ] |
|---|
| 24 | then |
|---|
| 25 | rm -rf /home/${i}/.openarena |
|---|
| 26 | fi |
|---|
| 27 | done |
|---|
| 28 | fi |
|---|
| 29 | fi |
|---|