#!/bin/sh

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <postinst> `abort-remove'
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

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

# this is very important for generating all pyc files (the debhleper-declaration)
#DEBHELPER# 

echo "postinst running"

echo "generating *.pyc files"
# generate *.pyc files to speed up startup
# also, after changing the permissions user ran python cant create them
python2.5 -m compileall /opt/mieru

exit 0

    