#!/bin/sh

install-info --quiet --remove /usr/share/info/fdutils.info.gz

if command -v install-docs >/dev/null 2>&1; then
    install-docs -r fdutils
    install-docs -r fdutils-faq
fi

if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/fdutils -a -d /usr/share/doc/fdutils ]; then
		ln -sf ../share/doc/fdutils /usr/doc/fdutils
	fi
fi
