File: PVER-dev.postinst.in

package info (click to toggle)
python2.4 2.4.1-2sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 47,012 kB
  • ctags: 86,497
  • sloc: ansic: 304,593; python: 268,756; makefile: 3,843; perl: 3,736; lisp: 3,678; sh: 2,206; xml: 894; objc: 747; cpp: 7; sed: 2
file content (28 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (5)
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
28
#! /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