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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
#!/bin/sh
# This is part of the acl-installer program:
# http://b9.com/acl-installer.html
#
# Copyright (c) 2002 Kevin M. Rosenberg <kmr@debian.org>
#
# acl-installer is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License (version 2) as1
# published by the Free Software Foundation.
#
# acl-installer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have a copy of the GNU General Public License on your
# Debian system in the file /usr/share/common-licenses/GPL-2
set -e
pkg=%pkg%
impl=%impl%
clc_bin=/usr/lib/common-lisp/bin/${impl}.sh
acl_dir=/usr/lib/acl
case "$1" in
remove|upgrade|deconfigure)
if [ -x $clc_bin ]; then
/usr/sbin/unregister-common-lisp-implementation $impl
fi
rm -f ${acl_dir}/logical-translations-${impl}.dat
;;
failed-upgrade)
if [ -x $clc_bin ]; then
/usr/sbin/unregister-common-lisp-implementation $impl
fi
rm -f ${acl_dir}/logical-translations-${impl}.cl
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 0
;;
esac
exit 0
|