debian/python2.3-oobrother.postinst
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Mon, 22 May 2006 12:38:25 +0200
changeset 1 b9b031063093
parent 0 7710b138d4eb
permissions -rw-r--r--
packaging updates

#! /bin/sh -e
#
# postinst script for Debian python packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#
VERSION=2.3
DIRLIST="/usr/lib/python$VERSION/site-packages/oobrother"



case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        for i in $DIRLIST ; do
            python$VERSION -O /usr/lib/python$VERSION/compileall.py -q $i
            python$VERSION /usr/lib/python$VERSION/compileall.py -q $i
        done
    ;;

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



## Alternatives

if [ "$1" = "configure" ]; then
    # update-alternatives on things that collide
    update-alternatives --install /usr/bin/oobrother oobrother /usr/bin/oobrother.python$VERSION 50
fi

#DEBHELPER#

exit 0