# Generic doc postrm script for Haskell cabal libraries v9 by Ian Lynagh.

set -e

DIR=/usr/share/doc/ghc6-doc/libraries
GEN=/usr/lib/ghc6-doc/gen_contents_index

case "$1" in
    *)
        [ -d $DIR ] && [ -e $GEN ] && cd $DIR && $GEN
    ;;
esac

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