|
Revision 1005, 1.4 KB
(checked in by kris, 12 months ago)
|
|
Fixed up the K3b module to include the k3b-i18n package, and copy these
language files into the PBI
|
-
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/k3b |
|---|
| 11 | rm /usr/local/share/apps/k3b |
|---|
| 12 | rm /usr/local/share/services/kfile_k3b.desktop |
|---|
| 13 | rm /usr/local/share/services/videodvd.protocol |
|---|
| 14 | |
|---|
| 15 | # Remove the services links |
|---|
| 16 | cd /Programs/${1}/autolibs/kde3/ |
|---|
| 17 | for i in `ls` |
|---|
| 18 | do |
|---|
| 19 | rm /usr/local/lib/kde3/${i} |
|---|
| 20 | done |
|---|
| 21 | |
|---|
| 22 | # Remove the sound links |
|---|
| 23 | cd /Programs/${1}/share/sounds/ |
|---|
| 24 | for i in `ls` |
|---|
| 25 | do |
|---|
| 26 | rm /usr/local/share/sounds/${i} |
|---|
| 27 | done |
|---|
| 28 | |
|---|
| 29 | # Remove the old locale files since we are uninstalling |
|---|
| 30 | LANGFILE="k3b.mo" |
|---|
| 31 | LANGFILE1="k3bsetup.mo" |
|---|
| 32 | LANGFILE2="libk3b.mo" |
|---|
| 33 | LANGFILE3="libk3bdevice.mo" |
|---|
| 34 | cd /Programs/${PROGDIR}/locale |
|---|
| 35 | for i in `ls` |
|---|
| 36 | do |
|---|
| 37 | rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} |
|---|
| 38 | rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE1} |
|---|
| 39 | rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE2} |
|---|
| 40 | rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE3} |
|---|
| 41 | done |
|---|
| 42 | |
|---|
| 43 | cd /home |
|---|
| 44 | for i in `ls` |
|---|
| 45 | do |
|---|
| 46 | if [ -d "/home/${i}/.k3b" ] |
|---|
| 47 | then |
|---|
| 48 | kdialog --title "Uninstalling K3b!" --yesno "Do you wish to erase K3b's configuration files for ${i} user as well?" |
|---|
| 49 | if [ "$?" = "0" ] |
|---|
| 50 | then |
|---|
| 51 | rm -R /home/${i}/.k3b |
|---|
| 52 | fi |
|---|
| 53 | fi |
|---|
| 54 | done |
|---|