|
Revision 1107, 0.7 KB
(checked in by kris, 11 months ago)
|
|
Added bomberclone to the list of modules we build
|
-
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 /usr/local/bin/bomberclone |
|---|
| 11 | rm /usr/local/share/bomberclone |
|---|
| 12 | |
|---|
| 13 | if [ ! -z "$DISPLAY" ] |
|---|
| 14 | then |
|---|
| 15 | # Ask if we want to remove the user profiles |
|---|
| 16 | kdialog --yesno "Do you want to remove BomberClone user settings?" --title "Remove user settings" |
|---|
| 17 | if [ "$?" = "0" ] |
|---|
| 18 | then |
|---|
| 19 | cd /home |
|---|
| 20 | for i in `ls` |
|---|
| 21 | do |
|---|
| 22 | if [ -e "/home/${i}/.bomberclone.cfg" ] |
|---|
| 23 | then |
|---|
| 24 | rm -rf /home/${i}/.bomberclone.cfg |
|---|
| 25 | fi |
|---|
| 26 | done |
|---|
| 27 | fi |
|---|
| 28 | fi |
|---|