X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=b765173edcb0b605b4fe60f6d0571095330fcb67;hb=1454981ac5f4f7ea8fe741a8125efbf0b09497ea;hp=0000000000000000000000000000000000000000;hpb=f299779179b32203a5bb9b91e1e6088ac5caf4ca;p=fiveam.git diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..b765173 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,48 @@ +#! /bin/sh +# postinst script for cl-fiveam +# +# see: dh_installdeb(1) + +set -e + +# package name according to lisp +LISP_CL_SHARE=/usr/share/common-lisp +LISP_PKG=fiveam +LISP_PKG_SOURCE=${LISP_CL_SHARE}/source/${LISP_PKG} + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + /usr/sbin/register-common-lisp-source ${LISP_PKG} + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0