File: python-vtk.postinst

package info (click to toggle)
vtk 5.0.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 51,080 kB
  • ctags: 67,442
  • sloc: cpp: 522,627; ansic: 221,292; tcl: 43,377; python: 14,072; perl: 3,102; java: 1,436; yacc: 1,033; sh: 469; lex: 248; makefile: 181; asm: 154
file content (32 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (2)
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
32
#! /bin/sh -e
#
#postinst for python-vtk based in part upon:
# postinst script for the Debian python2.2-tk package.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

if [ "$1" = "configure" ]; then
    ldconfig
fi

PYVERS=`pyversions -d`
PACKAGE=`basename $0 .postinst`
DIRLIST="/usr/lib/$PYVERS/site-packages/vtk"

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

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

#DEBHELPER#

exit 0