paulb@44 | 1 | #! /bin/sh |
paulb@44 | 2 | # postinst script for parallel |
paulb@44 | 3 | # |
paulb@44 | 4 | # see: dh_installdeb(1) |
paulb@44 | 5 | |
paulb@44 | 6 | set -e |
paulb@44 | 7 | |
paulb@44 | 8 | # summary of how this script can be called: |
paulb@44 | 9 | # * <postinst> `configure' <most-recently-configured-version> |
paulb@44 | 10 | # * <old-postinst> `abort-upgrade' <new version> |
paulb@44 | 11 | # * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
paulb@44 | 12 | # <new-version> |
paulb@44 | 13 | # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
paulb@44 | 14 | # <failed-install-package> <version> `removing' |
paulb@44 | 15 | # <conflicting-package> <version> |
paulb@44 | 16 | # for details, see http://www.debian.org/doc/debian-policy/ or |
paulb@44 | 17 | # the debian-policy package |
paulb@44 | 18 | # |
paulb@44 | 19 | # quoting from the policy: |
paulb@44 | 20 | # Any necessary prompting should almost always be confined to the |
paulb@44 | 21 | # post-installation script, and should be protected with a conditional |
paulb@44 | 22 | # so that unnecessary prompting doesn't happen if a package's |
paulb@44 | 23 | # installation fails and the `postinst' is called with `abort-upgrade', |
paulb@44 | 24 | # `abort-remove' or `abort-deconfigure'. |
paulb@44 | 25 | |
paulb@44 | 26 | PACKAGE=python2.4-parallel-pprocess |
paulb@44 | 27 | VERSION=2.4 |
paulb@44 | 28 | LIB="/usr/lib/python$VERSION" |
paulb@44 | 29 | |
paulb@44 | 30 | case "$1" in |
paulb@44 | 31 | configure|abort-upgrade|abort-remove|abort-deconfigure) |
paulb@44 | 32 | /usr/bin/python$VERSION -O -c "import pprocess" |
paulb@44 | 33 | /usr/bin/python$VERSION -c "import pprocess" |
paulb@44 | 34 | ;; |
paulb@44 | 35 | |
paulb@44 | 36 | *) |
paulb@44 | 37 | echo "postinst called with unknown argument \`$1'" >&2 |
paulb@44 | 38 | exit 1 |
paulb@44 | 39 | ;; |
paulb@44 | 40 | esac |
paulb@44 | 41 | |
paulb@44 | 42 | |
paulb@44 | 43 | |
paulb@44 | 44 | exit 0 |
paulb@44 | 45 | |
paulb@44 | 46 | |