1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debian/shedskin.postinst Mon Jan 11 01:41:58 2010 +0100
1.3 @@ -0,0 +1,44 @@
1.4 +#! /bin/sh
1.5 +# postinst script for ShedSkin
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=shedskin
1.30 +
1.31 +case "$1" in
1.32 + configure|abort-upgrade|abort-remove|abort-deconfigure)
1.33 + # ss is already a program
1.34 + chmod ugo+rx /usr/lib/shedskin/bin/ss.py /usr/bin/shedskin
1.35 + ;;
1.36 +
1.37 + *)
1.38 + echo "postinst called with unknown argument \`$1'" >&2
1.39 + exit 1
1.40 + ;;
1.41 +esac
1.42 +
1.43 +
1.44 +
1.45 +exit 0
1.46 +
1.47 +