root/pbibuild/modules/openoffice-en/overlay-dir/PBI.RemoveScript.sh

Revision 1035, 0.9 KB (checked in by kris, 13 months ago)

Initial import of OpenOffice? English module, will add i18n module once
the bug with OO 2.3.1 on KDE is fixed

  • 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#########################################
9
10rm -f /usr/local/openoffice.org-*
11rm -f /usr/local/bin/openoffice.org-*
12rm -f /usr/local/bin/sbase
13rm -f /usr/local/bin/sdraw
14rm -f /usr/local/bin/scalc
15rm -f /usr/local/bin/simpress
16rm -f /usr/local/bin/smath
17rm -f /usr/local/bin/swriter
18
19if [ ! -z "$DISPLAY" ]
20then
21 # Ask if we want to remove the user profiles
22 kdialog --yesno "Do you want to remove OpenOffice 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}/.openoffice.org2" ]
29   then
30    rm -rf /home/${i}/.openoffice.org2
31   fi
32  done
33 fi
34fi
Note: See TracBrowser for help on using the browser.