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

Revision 1379, 1.4 KB (checked in by kris, 10 months ago)

Added working digikam module

  • 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#########################################
9rm /usr/local/bin/digikam
10rm /usr/local/bin/kdcraw
11rm /usr/local/share/apps/digikam
12rm /usr/local/share/apps/showfoto
13
14rm /Programs/digiKam
15
16
17# remove our plugin links and such
18cd /Programs/${PROGDIR}/lib/kde3
19for i in `ls`
20do
21 rm /usr/local/lib/kde3/${i}
22done
23
24cd /Programs/${PROGDIR}/share/services
25for i in `ls`
26do
27 rm /usr/local/share/services/${i}
28done
29
30cd /Programs/${PROGDIR}/share/apps/konqueror/servicemenus
31for i in `ls`
32do
33 rm /usr/local/share/apps/konqueror/servicemenus/${i}
34done
35
36cd /Programs/${PROGDIR}/share/servicetypes
37for i in `ls`
38do
39 rm /usr/local/share/servicetypes/${i}
40done
41
42# Remove the old locale files since we are uninstalling
43LANGFILE="digikam.mo"
44cd /Programs/${PROGDIR}/locale
45for i in `ls`
46do
47  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
48done
49
50
51
52if [ ! -z "$DISPLAY" ]
53then
54 # Ask if we want to remove the user profiles
55 kdialog --yesno "Do you want to remove digiKam user settings?" --title "Remove user settings"
56 if [ "$?" = "0" ]
57 then
58  cd /home
59  for i in `ls`
60  do
61   if [ -e "/home/${i}/.digikam" ]
62   then
63    rm -rf /home/${i}/.digikam
64   fi
65  done
66 fi
67fi
Note: See TracBrowser for help on using the browser.