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

Revision 1356, 1.0 KB (checked in by kris, 11 months ago)

Fixed up the audacity port to include encoding to MP3 files, and setup the
default profile to reflect this, along with a larger tmp directory for
file storage.

  • 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/audacity
10rm -fR /usr/local/man/man1/audacity.1.gz
11rm -fR /usr/local/share/audacity
12rm -fR /usr/local/share/doc/audacity
13
14# Remove the old locale files since we are uninstalling
15LANGFILE="audacity.mo"
16cd /Programs/${PROGDIR}/locale
17for i in `ls`
18do
19  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
20done
21
22
23if [ ! -z "$DISPLAY" ]
24then
25 # Ask if we want to remove the user profiles
26 kdialog --yesno "Do you want to remove Audacity user settings and temp files?" --title "Remove user settings"
27 if [ "$?" = "0" ]
28 then
29  cd /home
30  for i in `ls`
31  do
32   if [ -e "/home/${i}/.audacity" ]
33   then
34    rm /home/${i}/.audacity
35    rm -rf /home/${i}/.audacity_temp  2>/dev/null >/dev/null
36   fi
37  done
38 fi
39fi
Note: See TracBrowser for help on using the browser.