1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/packages/debian-stable/python2.3-libxml2dom/debian/postinst Sun Nov 12 22:53:26 2006 +0000
1.3 @@ -0,0 +1,49 @@
1.4 +#! /bin/sh
1.5 +# postinst script for libxml2dom
1.6 +#
1.7 +# see: dh_installdeb(1)
1.8 +
1.9 +set -e
1.10 +
1.11 +# summary of how this script can be called:
1.12 +# * <postinst> `configure' <most-recently-configured-version>
1.13 +# * <old-postinst> `abort-upgrade' <new version>
1.14 +# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
1.15 +# <new-version>
1.16 +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
1.17 +# <failed-install-package> <version> `removing'
1.18 +# <conflicting-package> <version>
1.19 +# for details, see http://www.debian.org/doc/debian-policy/ or
1.20 +# the debian-policy package
1.21 +#
1.22 +# quoting from the policy:
1.23 +# Any necessary prompting should almost always be confined to the
1.24 +# post-installation script, and should be protected with a conditional
1.25 +# so that unnecessary prompting doesn't happen if a package's
1.26 +# installation fails and the `postinst' is called with `abort-upgrade',
1.27 +# `abort-remove' or `abort-deconfigure'.
1.28 +
1.29 +PACKAGE=python2.3-libxml2dom
1.30 +VERSION=2.3
1.31 +LIB="/usr/lib/python$VERSION"
1.32 +DIRLIST="$LIB/site-packages/libxml2dom"
1.33 +
1.34 +case "$1" in
1.35 + configure|abort-upgrade|abort-remove|abort-deconfigure)
1.36 + for i in $DIRLIST ; do
1.37 + /usr/bin/python$VERSION -O $LIB/compileall.py -q $i
1.38 + /usr/bin/python$VERSION $LIB/compileall.py -q $i
1.39 + done
1.40 + ;;
1.41 +
1.42 + *)
1.43 + echo "postinst called with unknown argument \`$1'" >&2
1.44 + exit 1
1.45 + ;;
1.46 +esac
1.47 +
1.48 +
1.49 +
1.50 +exit 0
1.51 +
1.52 +