~ubuntu-branches/ubuntu/vivid/ubuntu-docs/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/ubuntu-docs.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Matthew East
  • Date: 2011-04-29 14:49:35 UTC
  • Revision ID: james.westby@ubuntu.com-20110429144935-yjbprud1efvmcbtt
Tags: 11.10.1
* Use Gnome and gnome-doc-utils for packaging - update debian/control 
  for new build-deps accordingly
* Add Unity+Unity documentation here rather than gnome-user-docs; give it
  its own document id and install in ubuntu-help directory
* Remove browser homepage update-alternative system
* Update translations from gnome-user-docs natty package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
set -e
3
 
 
4
 
#DEBHELPER#
5
 
 
6
 
case "$1" in
7
 
  configure)
8
 
    update-alternatives \
9
 
      --install /usr/share/ubuntu-artwork/home/index.html \
10
 
      firefox-homepage /usr/share/ubuntu-artwork/home/firefox-index.html 40 \
11
 
      --slave /usr/share/ubuntu-artwork/home/locales \
12
 
      firefox-homepage-locales /usr/share/ubuntu-artwork/home/locales-ubuntu
13
 
 
14
 
        link=/usr/share/gnome/help/libs
15
 
        if [ -d "$link" ] && ! [ -L "$link" ] \
16
 
           && dpkg --compare-versions "$2" lt-nl 9.04.7
17
 
        then
18
 
                rmdir "$link"
19
 
                ln -s ../../ubuntu-docs/libs "$link"
20
 
        fi
21
 
  ;;
22
 
esac
23
 
 
24
 
exit 0