~ubuntu-branches/debian/lenny/haskell-utils/lenny

« back to all changes in this revision

Viewing changes to scripts/8/libghc6-PACKAGE-dev.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Ian Lynagh (wibble)
  • Date: 2008-02-21 02:30:03 UTC
  • mfrom: (2.1.8 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221023003-x73ww9m1rjpbiewh
Tags: 1.11
* We now make tight (build-)deps for the Cabal packages we depend on.
  This means that we can't have problems caused by cross-module
  inlining, or even Cabal version numbers becoming mismatched.
  Closes: #432799.
* Ignore dotfiles in varfile directories.
  In particular, this means that we ignore things like vim swapfiles.
  Closes: #445627.
* Fix the doc directory used in libghc6-PACKAGE-doc.postrm.
  Closes: #463998.
* Move the ghc6 version dependency logic into this package, and
  ignore what the ghc6 package tells us. This allows us to vary it,
  in particular make changes to the supported arches list, without
  having to do another ghc6 build on all platforms.
* All platforms now support ghc6, so make library build-deps just
      ghc6 (>= 6.8.2),                ghc6 (<< 6.8.2+)
  rather than
      ghc6 (>= 6.8.2) [$ghc6_arches], ghc6 (<< 6.8.2+) [$ghc6_arches]
* Changes in Debian packaging scripts 10 over 9:
  * We now use ${impl:ghc6:lib_build_deps} rather than ${ghc6_lib_bdeps}.
    Closes: #460077.
  * We now use ${impl:ghc6:*_deps} rather than ${ghc6_*_deps} and
    hardcoded, unversioned deps.
  * Call canonicalise-comma-list on the depends and suggests fields in
    control.in. This works around bugs in lintian, where it gets
    confused and starts giving spurious warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Generic postinst script for Haskell cabal libraries v8 by Ian Lynagh.
 
3
#
 
4
# SOURCE: @PACKAGE@.postinst.in
 
5
set -e
 
6
 
 
7
# summary of how this script can be called:
 
8
#        * <postinst> `configure' <most-recently-configured-version>
 
9
#        * <old-postinst> `abort-upgrade' <new version>
 
10
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 
11
#          <new-version>
 
12
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 
13
#          <failed-install-package> <version> `removing'
 
14
#          <conflicting-package> <version>
 
15
# for details, see /usr/doc/packaging-manual/
 
16
#
 
17
# quoting from the policy:
 
18
#     Any necessary prompting should almost always be confined to the
 
19
#     post-installation script, and should be protected with a conditional
 
20
#     so that unnecessary prompting doesn't happen if a package's
 
21
#     installation fails and the `postinst' is called with `abort-upgrade',
 
22
#     `abort-remove' or `abort-deconfigure'.
 
23
 
 
24
case "$1" in
 
25
    configure|abort-upgrade|abort-remove|abort-deconfigure)
 
26
        /usr/lib/@PACKAGE@/register.sh
 
27
    ;;
 
28
    *)
 
29
        echo "postinst called with unknown argument \`$1'" >&2
 
30
        exit 0
 
31
    ;;
 
32
esac
 
33
 
 
34
# dh_installdeb will replace this with shell code automatically
 
35
# generated by other debhelper scripts.
 
36
 
 
37
#DEBHELPER#
 
38
 
 
39
exit 0
 
40