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

Revision 994, 0.9 KB (checked in by kris, 12 months ago)

Fixed up the location of the bmpx.mo files to allow the translations to
load properly

  • 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/beep-media-player-2-bin
11rm /usr/local/share/bmpx
12rm /usr/local/libexec/beep-media*
13rm /Programs/BMPx
14
15# Remove the old locale files since we are uninstalling
16LANGFILE="bmpx.mo"
17cd /Programs/${PROGDIR}/share/locale/
18for i in `ls`
19do
20  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
21done
22
23
24if [ ! -z "$DISPLAY" ]
25then
26 # Ask if we want to remove the user profiles
27 kdialog --yesno "Do you want to remove BMPx user settings?" --title "Remove user settings"
28 if [ "$?" = "0" ]
29 then
30  cd /home
31  for i in `ls`
32  do
33   if [ -e "/home/${i}/.config/bmpx" ]
34   then
35    rm -rf /home/${i}/.config/bmpx
36   fi
37  done
38 fi
39fi
Note: See TracBrowser for help on using the browser.