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

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

## ----------------------------------------------------------------------
## Handle action to be performed
case "$1"
in

    configure)

	## --------------------------------------------------------------
	## Install SGML catalog entries
	install-sgmlcatalog --install /usr/lib/debiandoc-sgml/sgml.catalog \
	    debiandoc-sgml

	## --------------------------------------------------------------
	## Install doc-base entries
	if command -v install-docs >/dev/null 2>&1;
	then
	    install-docs --install /usr/share/doc-base/debiandoc-sgml
	fi

    ;;

    abort-upgrade)
    ;;

    abort-remove)
    ;;

    abort-deconfigure)
    ;;

    *)
	echo "$0: didn't understand being called with \`$1'" 1>&2
	exit 0
    ;;

esac

## ----------------------------------------------------------------------
exit 0

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