|
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 | ######################################### |
|---|
| 9 | rm -fR /usr/local/bin/audacity |
|---|
| 10 | rm -fR /usr/local/man/man1/audacity.1.gz |
|---|
| 11 | rm -fR /usr/local/share/audacity |
|---|
| 12 | rm -fR /usr/local/share/doc/audacity |
|---|
| 13 | |
|---|
| 14 | # Remove the old locale files since we are uninstalling |
|---|
| 15 | LANGFILE="audacity.mo" |
|---|
| 16 | cd /Programs/${PROGDIR}/locale |
|---|
| 17 | for i in `ls` |
|---|
| 18 | do |
|---|
| 19 | rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} |
|---|
| 20 | done |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | if [ ! -z "$DISPLAY" ] |
|---|
| 24 | then |
|---|
| 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 |
|---|
| 39 | fi |
|---|