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

Revision 1322, 0.9 KB (checked in by gonzalo, 10 months ago)

Bygfoot added

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