#!/bin/sh -e # # prerm maintainer script for the Debian autolatex-core package. # # summary of how this script can be called: # * remove # * upgrade # * failed-upgrade # * remove in-favour # * deconfigure in-favour # removing # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade) CONFIGFILE="`dirname $0`/autolatex-core.config" if [ -f "$CONFIGFILE" ] then if $CONFIGFILE "$1"; then true; else exit 1; fi else echo "ERROR(prerm): No DebConf configuration script found: $CONFIGFILE" >&2 exit 1 fi update-alternatives --remove autolatex /usr/lib/autolatex/autolatex.pl ;; *) ;; esac #DEBHELPER# exit 0