root/pbibuild/modules/k3b/overlay-dir/PBI.RemoveScript.sh

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
10rm /usr/local/bin/k3b
11rm /usr/local/share/apps/k3b
12rm /usr/local/share/services/kfile_k3b.desktop
13rm /usr/local/share/services/videodvd.protocol
14
15# Remove the services links
16cd /Programs/${1}/autolibs/kde3/
17for i in `ls`
18do
19 rm /usr/local/lib/kde3/${i}
20done
21
22# Remove the sound links
23cd /Programs/${1}/share/sounds/
24for i in `ls`
25do
26 rm /usr/local/share/sounds/${i}
27done
28
29# Remove the old locale files since we are uninstalling
30LANGFILE="k3b.mo"
31LANGFILE1="k3bsetup.mo"
32LANGFILE2="libk3b.mo"
33LANGFILE3="libk3bdevice.mo"
34cd /Programs/${PROGDIR}/locale
35for i in `ls`
36do
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}
41done
42
43cd /home
44for 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
Note: See TracBrowser for help on using the browser.