File: python2.1-expect.postinst

package info (click to toggle)
python-expect 1.0.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 320 kB
  • ctags: 122
  • sloc: ansic: 1,206; sh: 468; python: 157; makefile: 58
file content (33 lines) | stat: -rw-r--r-- 774 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
32
33
#! /bin/sh
# postinst script for python2.1-expect
#
# see: dh_installdeb(1)

set -e

case "$1" in
    configure)
	echo "Byte-compiling python modules..."
	python2.1 -c 'import py_compile; py_compile.compile("/usr/lib/python2.1/site-packages/expect.py")'
	echo "expect.py"
	echo "Byte-compiling python modules (optimised versions) ..."
	python2.1 -O -c 'import py_compile; py_compile.compile("/usr/lib/python2.1/site-packages/expect.py")'	
	echo "expect.py"
	mkdir -p /usr/local/include/expect/
	;;
    abort-upgrade|abort-remove|abort-deconfigure)
	;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
	;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0