#!/bin/sh -e

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

if command -v install-docs >/dev/null 2>&1; then
  install-docs -i /usr/share/doc-base/fbbdoc
fi
