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

Revision 1743, 0.8 KB (checked in by gonzalo, 7 months ago)

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