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

Revision 1305, 0.7 KB (checked in by gonzalo, 10 months ago)

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