File: postinst

package info (click to toggle)
xtalk 1.3-10
  • links: PTS
  • area: main
  • in suites: woody
  • size: 112 kB
  • ctags: 139
  • sloc: python: 759; makefile: 54; sh: 22
file content (31 lines) | stat: -rw-r--r-- 588 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
24
25
26
27
28
29
30
31
#! /bin/sh -e
#
# postinst script for Debian python packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

PACKAGE=`basename $0 .postinst`
PV=2.1
PYTHON=python$PV
DIRLIST="/usr/lib/xtalk/"


case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)

        for i in $DIRLIST ; do
            /usr/bin/$PYTHON -O /usr/lib/python$PV/compileall.py -q $i
            /usr/bin/$PYTHON /usr/lib/python$PV/compileall.py -q $i
        done

    ;;

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

#DEBHELPER#

exit 0