#!/bin/bash

if [ "$1" = "remove" ]; then
	mv -f /etc/texmf/texmf.d/94alml.cnf /etc/texmf/texmf.d/94alml.bak
	if [ -x /usr/sbin/update-texmf ] ; then /usr/sbin/update-texmf -v ; fi
elif [ "$1" = "purge" ]; then
	rm -f /etc/texmf/texmf.d/94alml.bak /etc/texmf/texmf.d/94Alml
fi

if [ -x /usr/sbin/update-fmtutil ] ; then /usr/sbin/update-fmtutil ; fi
if [ -x /usr/sbin/update-catalog ] 
then /usr/sbin/update-catalog --remove --super /etc/sgml/alml.cat
     /usr/sbin/update-catalog --remove /etc/sgml/alml.cat /usr/share/sgml/alml/alml.cat
fi

#DEBHELPER#
