mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-11-30 22:50:47 +00:00
78 lines
1.8 KiB
Bash
78 lines
1.8 KiB
Bash
#!/bin/sh
|
|
# prerm script for a2pi
|
|
#
|
|
# see: dh_installdeb(1)
|
|
|
|
set -e
|
|
|
|
# summary of how this script can be called:
|
|
# * <prerm> `remove'
|
|
# * <old-prerm> `upgrade' <new-version>
|
|
# * <new-prerm> `failed-upgrade' <old-version>
|
|
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
|
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
|
# <package-being-installed> <version> `removing'
|
|
# <conflicting-package> <version>
|
|
# for details, see http://www.debian.org/doc/debian-policy/ or
|
|
# the debian-policy package
|
|
|
|
|
|
case "$1" in
|
|
remove|upgrade|deconfigure)
|
|
if [ -f /usr/local/bin/a2pid ] ; then
|
|
rm /usr/local/bin/a2pid
|
|
fi
|
|
if [ -f /usr/local/bin/a2mon ] ; then
|
|
rm /usr/local/bin/a2mon
|
|
fi
|
|
if [ -f /usr/local/bin/dskread ] ; then
|
|
rm /usr/local/bin/dskread
|
|
fi
|
|
if [ -f /usr/local/bin/dskwrite ] ; then
|
|
rm /usr/local/bin/dskwrite
|
|
fi
|
|
if [ -f /usr/local/bin/a2term ] ; then
|
|
rm /usr/local/bin/a2term
|
|
fi
|
|
if [ -f /usr/local/bin/fusea2pi ] ; then
|
|
rm /usr/local/bin/fusea2pi
|
|
fi
|
|
if [ -f /usr/local/bin/a2joy ] ; then
|
|
rm /usr/local/bin/a2joy
|
|
fi
|
|
if [ -f /usr/local/bin/a2joymou ] ; then
|
|
rm /usr/local/bin/a2joymou
|
|
fi
|
|
if [ -f /usr/local/bin/a2joypad ] ; then
|
|
rm /usr/local/bin/a2joypad
|
|
fi
|
|
if [ -f /usr/local/bin/a2mount ] ; then
|
|
rm /usr/local/bin/a2mount
|
|
fi
|
|
if [ -f /usr/local/bin/bload ] ; then
|
|
rm /usr/local/bin/bload
|
|
fi
|
|
if [ -f /usr/local/bin/brun ] ; then
|
|
rm /usr/local/bin/brun
|
|
fi
|
|
if [ -f /usr/local/sbin/a2pid ] ; then
|
|
rm /usr/local/sbin/a2pid
|
|
fi
|
|
;;
|
|
|
|
failed-upgrade)
|
|
;;
|
|
|
|
*)
|
|
echo "prerm called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|