summaryrefslogtreecommitdiffstats
path: root/debian/python2-scons.postinst
blob: eedb8abc479c9f02858bbd5248685a855412a96d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/sh -e
#
# postinst script for Debian python2 packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
# Modified for SCons 2001 by Anthony Roach <aroach@electriceyeball.com>.
#

PACKAGE=python2-scons
DIRLIST="/usr/lib/python2.0/site-packages/SCons"

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

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

#DEBHELPER#

exit 0