#!/bin/sh -e

L=it

#DEBHELPER#

if [ "$1" = "configure" ]; then
  if [ -d /usr/doc -a ! -e /usr/doc/HOWTO/${L}-txt \
       -a -d /usr/share/doc/HOWTO/${L}-html ]; then
    ln -sf ../../share/doc/HOWTO/${L}-html /usr/doc/HOWTO/${L}-html
  fi
fi

if [ -f /usr/sbin/dhelp_parse ]; then
  echo -n "Registering documentation with dhelp..."
  /usr/sbin/dhelp_parse -a /usr/share/doc/HOWTO/${L}-html
  /usr/sbin/dhelp_parse -a /usr/share/doc/HOWTO/${L}-html/mini
  echo "done."
fi

