3
# Debian prerm script for Python x.y hierarchical modules
4
# Written by Gregor Hoffleit <flight@debian.org>
5
# Extended by Matthias Klose <doko@debian.org>
6
# and I believe I might have done some touching <dancer@debian.org>
9
PACKAGE=`basename $0 .postinst`
10
PV=`dpkg --listfiles $PACKAGE | sed -n -e '/^\/usr\/lib\/python.*\//{
11
s,/usr/lib/python\([0-9][0-9.]*\)/.*,\1,p
14
DIRLIST="/usr/lib/python$PV"
17
configure|abort-upgrade|abort-remove|abort-deconfigure)
18
for i in $DIRLIST ; do
19
python -O /usr/lib/python$PV/compileall.py -q $i
20
python /usr/lib/python$PV/compileall.py -q $i
25
echo "postinst called with unknown argument \`$1'" >&2