openbsd-ports/mail/mozilla-thunderbird/pkg/DEINSTALL
2004-12-27 21:21:38 +00:00

40 lines
801 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/12/27 21:21:39 wilfried Exp $
#
# De-installation setup of mozilla-thunderbird
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
MOZ=${PREFIX}/mozilla-thunderbird
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname DEINSTALL" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
DEINSTALL)
cd ${MOZ}/components
rm -f compreg.dat xpti.dat
cd ${MOZ}/chrome
rm -rf chrome.rdf overlayinfo
rm -f .autoreg components.ini install.log registry
rm -f extensions/Extensions.rdf extensions/installed-extensions-processed.txt
rm -rf extensions/{*
rmdir extensions
;;
*)
echo "usage: $0 distname DEINSTALL" >&2
exit 1
;;
esac
exit 0