1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/bin/sh
#
# emacsen remove script for the Debian GNU/Linux
# gforth package
#
# Written by Rafael Laboissiere <rafael@debian.org> and
# Agustin Martin <agmartin@debian.org> based on
# Dirk Eddelbuettel <edd@debian.org> script for the octave package.
# -----------------------------------------------------------------
set -e
# Canadian spelling ;-)
flavour=$1
# Do nothing for dummy 'emacs' flavour
if [ ${flavour} = emacs ]; then exit 0; fi
package=gforth
destination=/usr/share/${flavour}/site-lisp/${package}
if [ -d $destination ]; then
echo remove/${package}: Purging byte-compiled files for flavour ${flavour}
rm -f ${destination}/*.elc ${destination}/*.el ${destination}/done
rmdir --ignore-fail-on-non-empty ${destination}
fi
exit 0;
|