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

Revision 1146, 1.0 KB (checked in by gonzalo, 12 months ago)

bzf folder now will be removed

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/bzadmin
10rm -fR /usr/local/bin/bzflag
11rm -fR /usr/local/bin/bzfs
12rm -fR /usr/local/man/man5/bzw.5.gz
13rm -fR /usr/local/man/man6/bzadmin.6.gz
14rm -fR /usr/local/man/man6/bzflag.6.gz
15rm -fR /usr/local/man/man6/bzfquery.6.gz
16rm -fR /usr/local/man/man6/bzfs.6.gz
17rm -fR /usr/local/share/bzflag
18
19if [ ! -z "$DISPLAY" ]
20then
21 # Ask if we want to remove the user profiles
22 kdialog --yesno "Do you want to remove BZFlag user settings?" --title "Remove user settings"
23 if [ "$?" = "0" ]
24 then
25  cd /home
26  for i in `ls`
27  do
28   if [ -e "/home/${i}/.bzflag" ]
29   then
30    rm -fR /home/${i}/.bzflag
31    rm -fR /home/${i}/.bzf
32   fi
33  done
34 fi
35fi
Note: See TracBrowser for help on using the browser.