~ubuntu-branches/ubuntu/quantal/elinks/quantal

« back to all changes in this revision

Viewing changes to debian/elinks.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Siegfried-Angel Gevatter Pujals (RainCT)
  • Date: 2008-02-01 16:29:06 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080201162906-xdourui5tyjva0al
Tags: 0.11.3-5ubuntu1
 
* Merge from Debian unstable (LP: #187936); remaining changes:
  - Add X-Ubuntu-Gettext-Domain to .desktop files.
  - debian/control: Maintainer field update.
* Improve the text in the .desktop file and add some translations.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# postinst for elinks
3
 
# see: dh_installdeb(1)
 
1
#!/bin/sh
4
2
 
5
3
set -e
6
4
 
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
5
case "$1" in
25
6
    configure)
26
 
        update-alternatives --quiet --install /usr/bin/links links \
27
 
            /usr/bin/elinks 20 --slave /usr/share/man/man1/links.1.gz \
28
 
            links.1.gz /usr/share/man/man1/elinks.1.gz
29
 
        update-alternatives --quiet --install /usr/bin/www-browser www-browser \
30
 
            /usr/bin/elinks 35 \
31
 
            --slave /usr/share/man/man1/www-browser.1.gz www-browser.1.gz \
32
 
            /usr/share/man/man1/elinks.1.gz
33
 
 
34
 
      # Purge the debconf database we no longer need.
35
 
      if [ -e /usr/share/debconf/confmodule ]; then
36
 
        . /usr/share/debconf/confmodule
37
 
        db_version 2.0
38
 
        db_purge
39
 
      fi
40
 
 
 
7
        update-alternatives --quiet \
 
8
            --install /usr/bin/www-browser www-browser /usr/bin/elinks 35 \
 
9
            --slave /usr/share/man/man1/www-browser.1.gz www-browser.1.gz /usr/share/man/man1/elinks.1.gz
41
10
    ;;
42
11
 
43
12
    abort-upgrade|abort-remove|abort-deconfigure)
50
19
    ;;
51
20
esac
52
21
 
53
 
# dh_installdeb will replace this with shell code automatically
54
 
# generated by other debhelper scripts.
55
 
 
56
22
#DEBHELPER#
57
23
 
58
24
exit 0