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

Revision 1610, 0.7 KB (checked in by gonzalo, 9 months ago)

Glest added,images needed

  • 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/glest
10rm -fR /usr/local/share/glest
11rm -fR /usr/local/share/doc/glest
12if [ ! -z "$DISPLAY" ]
13then
14 # Ask if we want to remove the user profiles
15 kdialog --yesno "Do you want to remove Glest 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}/.glest" ]
22   then
23    rm -rf /home/${i}/.glest
24   fi
25  done
26 fi
27fi
Note: See TracBrowser for help on using the browser.