~ubuntu-branches/ubuntu/precise/pango1.0/precise

« back to all changes in this revision

Viewing changes to debian/libpango1.0-common.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2011-01-12 23:02:43 UTC
  • mfrom: (63.1.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20110112230243-cqb5dueesw1196aj
Tags: 1.28.3-4
* Switch to source format 3.0 (quilt).
* Switch to CDBS with its awesome flavors support.
* Stop symlinking /usr/share/doc/$pkg directories.
* Abort the build if the test suite doesn't pass.
* Drop defoma support since it's going away. Closes: #540984.
* debian/libpango1.0-0.postinst.in:
  - Removed, no longer needed.
* debian/control.in:
  - Clean up old Conflicts/Replaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
# until version 1.14.5-1, we generated a /etc/pango/pango.modules
6
 
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "1.14.5-1"; then
7
 
    echo "I: Purging /etc/pango/pango.modules" >&2
8
 
    rm -f /etc/pango/pango.modules
9
 
fi
10
 
 
11
 
if [ "$1" = "configure" ]; then
12
 
    update-pangox-aliases
13
 
    if test -f /etc/pango/pangox.aliases && ! test -h /etc/pango/pangox.aliases; then
14
 
        echo "I: Backuping /etc/pango/pangox.aliases as /etc/pango/pangox.aliases-old" >&2
15
 
        mv /etc/pango/pangox.aliases /etc/pango/pangox.aliases-old
16
 
    fi
17
 
    if ! test -e /etc/pango/pangox.aliases && test -f /var/lib/defoma/pango.d/pangox.aliases; then
18
 
        ln -sf /var/lib/defoma/pango.d/pangox.aliases /etc/pango/pangox.aliases
19
 
    fi
20
 
fi
21
 
 
22
 
#DEBHELPER#