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

Revision 1183, 0.8 KB (checked in by gonzalo, 12 months ago)

PDFedit fixed

  • 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/pdfedit
10rm -fR /usr/local/man/man1/pdfedit.1.gz
11rm -fR /usr/local/share/doc/pdfedit
12rm -fR /usr/local/share/pdfedit
13
14if [ ! -z "$DISPLAY" ]
15then
16 # Ask if we want to remove the user profiles
17 kdialog --yesno "Do you want to remove PDFedit user settings?" --title "Remove user settings"
18 if [ "$?" = "0" ]
19 then
20  cd /home
21  for i in `ls`
22  do
23   if [ -e "/home/${i}/.pdfedit" ]
24   then
25    rm -rf /home/${i}/.pdfedit
26   fi
27  done
28 fi
29fi
Note: See TracBrowser for help on using the browser.