#!/bin/sh -e

#DEBHELPER#

if [ "$1" = "remove" ]; then

	. /usr/share/debconf/confmodule || exit
	db_version 2.0
	db_fset cxx/intro rpmok false
	# Remove alternatives symlink set in postinst
	update-alternatives --remove c++ /usr/bin/cxx
fi


if [ "$1" != "upgrade" ]; then
	# Clean up files installed in the postinst.
	rm -rf /usr/lib/compaq/cxx-* /usr/share/doc/cxx/COPYING \
	  /usr/share/doc/cxx/*.htm /usr/share/doc/cxx/*.gif \
	  /usr/share/doc/cxx/*.ps /usr/share/doc/cxx/*.pdf \
	  /usr/share/doc/cxx/*.txt
fi
