#! /bin/sh
# postrm script for root-cint
#
# see: dh_installdeb(1)

set -e

case "$1" in
    purge|remove)
	# remove lines for @prefix@/lib/root in /etc/ld.so.conf
	# if they exist. This can be done here, since all other 
	# packages depends on this package, so this package cannot be
	# removed without removing this package, and so the the directory
	# @prefix@/lib/root will no longer exist. 
	if grep -qs ^@prefix@/lib/root\$ /etc/ld.so.conf ; then
	    sed '/^\@prefix@\/lib\/root$/d' /etc/ld.so.conf \
		> /etc/ld.so.conf.root-tmp
            mv /etc/ld.so.conf.root-tmp /etc/ld.so.conf
	fi
        ;;
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
	# Nothing to be done here
	;;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 0

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#


