#! /bin/sh -e

if test "$1" = "remove" -o "$1" = "upgrade"
then
	if command -v install-docs >/dev/null 2>&1
	then
		install-docs -r dep.pl-manual
	fi
fi

if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pkg ]; then
  rm -f /usr/doc/pkg
fi
