#! /bin/sh
# postinst script
#
# see: dh_installdeb(1)

set -e

PKG=$0
PKG=${PKG##*/}
PKG=${PKG%.postinst}

. /usr/share/debconf/confmodule

if [ "$1" = configure ]; then
  db_get $PKG/level || true
  
  IFS=' ,'
  for i in $RET; do
    case $i in
      standard) i=std ;;
      extra) i=ext ;;
    esac
    
    /usr/bin/defoma-font -t reregister-all /etc/defoma/hints/$PKG.$i.hints > /dev/null
  done
fi

#DEBHELPER#

exit 0


