#! /bin/sh -e

pkg=gtoaster

if [ ! \( "$1" = "upgrade" -o "$1" = "remove" \) ]; then
	exit 0
fi

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

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