File: postinst

package info (click to toggle)
boa-constructor 0.3.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,188 kB
  • ctags: 8,857
  • sloc: python: 54,163; sh: 66; makefile: 36
file content (35 lines) | stat: -rw-r--r-- 652 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
34
35
#! /bin/sh
# postinst script for boa-constructor

set -e

case "$1" in
    configure)

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

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

# There's one directory with python files that must not be compiled
PYTHON=python2.3
if which $PYTHON >/dev/null 2>&1; then
	DIRLIST=" /usr/share/boa-constructor"
	for i in $DIRLIST ; do
		$PYTHON -O /usr/lib/$PYTHON/compileall.py -q -x /usr/share/boa-constructor/ZopeLib/zoa $i
		$PYTHON /usr/lib/$PYTHON/compileall.py -q -x /usr/share/boa-constructor/ZopeLib/zoa $i
	done
fi

#DEBHELPER#

exit 0