#!/bin/sh -e
#
# debian/prerm for getpath
# Kill off the /usr/doc crap.
#

umask 022
pkg=getpath

usrdoclink()
{
	#
	# Destroy the /usr/doc/getpath -> usr/share/doc/getpath link.
	#

	if [ -L /usr/doc/${pkg} ]; then
		rm -f /usr/doc/${pkg}
	fi

}

case "$1" in
	(upgrade|remove)
		usrdoclink
		;;
esac
exit 0
