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

Revision 1060, 0.9 KB (checked in by gonzalo, 12 months ago)

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