diff options
Diffstat (limited to 'debian/libsane-dev.preinst')
-rw-r--r-- | debian/libsane-dev.preinst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/libsane-dev.preinst b/debian/libsane-dev.preinst new file mode 100644 index 0000000..d547bda --- /dev/null +++ b/debian/libsane-dev.preinst @@ -0,0 +1,23 @@ +#!/bin/sh +set -e + + + +case "$1" in + install|upgrade|abort-upgrade) +# +# remove obsolete files +# + rm -f /usr/bin/sane-config.* + if [ -h /usr/bin/sane-config ] ; then + rm -f /usr/bin/sane-config + fi + ;; + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + +#DEBHELPER# |