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