#!/bin/sh
## ----------------------------------------------------------------------
## debian/postinst: post-installation script for debiandoc-sgml
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
## Abort if any command returns an error value
set -e

## ----------------------------------------------------------------------
## remove old cruft
[ -d /usr/doc/debiandoc-sgml ] && [ ! -L /usr/doc/debiandoc-sgml ] \
    && rm -rf /usr/doc/debiandoc-sgml

## --------------------------------------------------------------
## Install SGML catalog entries
if [ "$1" = "configure" ]
then
    install-sgmlcatalog --install /usr/lib/debiandoc-sgml/sgml.catalog \
	debiandoc-sgml
fi

## ----------------------------------------------------------------------
## Automatically added sections
#DEBHELPER#

## ----------------------------------------------------------------------
