1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/packages/ubuntu-gutsy/python-astgrep/debian/python-astgrep.postinst Mon Oct 27 00:48:47 2008 +0100
1.3 @@ -0,0 +1,43 @@
1.4 +#! /bin/sh
1.5 +# postinst script for python-astgrep
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=python-astgrep
1.30 +
1.31 +case "$1" in
1.32 + configure|abort-upgrade|abort-remove|abort-deconfigure)
1.33 + chmod ugo+rx /usr/bin/astgrep
1.34 + ;;
1.35 +
1.36 + *)
1.37 + echo "postinst called with unknown argument \`$1'" >&2
1.38 + exit 1
1.39 + ;;
1.40 +esac
1.41 +
1.42 +
1.43 +
1.44 +exit 0
1.45 +
1.46 +