#!/bin/sh -e

#DEBHELPER#

if [ "$1" = "remove" ]; then
	. /usr/share/debconf/confmodule || exit
	db_version 2.0
	db_fset cfal/intro rpmok false
	# Remove alternatives symlink set in postinst
	update-alternatives --remove f77 /usr/bin/fort
fi


if [ "$1" != "upgrade" ]; then
	# Clean up files installed in the postinst.
	rm -rf /usr/lib/compaq/cfal-* /usr/share/doc/cfal/README.gz \
	  /usr/share/doc/cfal/decfortran90.hlp.gz
fi
