File: python-pmw.postinst

package info (click to toggle)
python-pmw 0.8.5-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,820 kB
  • ctags: 3,468
  • sloc: python: 14,898; makefile: 37; sh: 17
file content (23 lines) | stat: -rw-r--r-- 539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/bash -e
#
# Debian postinst script for Python 1.5 hierarchical modules
# Written by Gregor Hoffleit <flight@debian.org>
#

DIRLIST="/usr/lib/python2.1/site-packages/Pmw"

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

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

#DEBHELPER#