#! /bin/sh -e
#
# postinst script for the Debian @PVER@-tk package.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

PACKAGE=`basename $0 .postinst`
DIRLIST="/usr/lib/python@VER@/distutils"

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        for i in $DIRLIST ; do
            /usr/bin/python@VER@ -O /usr/lib/python@VER@/compileall.py -q $i
            /usr/bin/python@VER@ /usr/lib/python@VER@/compileall.py -q $i
        done
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac


#DEBHELPER#


exit 0
