~ubuntu-branches/ubuntu/maverick/glade-3/maverick

« back to all changes in this revision

Viewing changes to debian/glade-3.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-06-20 14:43:35 UTC
  • mfrom: (1.1.17 lenny)
  • Revision ID: james.westby@ubuntu.com-20080620144335-mcazxmarzccdgd2t
Tags: 3.4.5-3ubuntu1
* Sync on Debian
* Version binaries so they don't conflict with the previous glade version
* debian/control.in:
  - don't use conflict on glade
  - updated binary naming
  - updated maintainer information
  - use replaces required
* debian/rules:
  - correctly install icons
  - updated for the ubuntu binaries naming
  - use gnome.mk so the icon cache and translations template are updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
action="$1"
 
6
 
 
7
case "$action" in
 
8
  upgrade)
 
9
    version="$2"
 
10
 
 
11
    # remove symlink from versions older than 2.91.3+CVS20060621-1 manually 
 
12
    # on upgrades
 
13
    if dpkg --compare-versions "$version" lt 2.91.3+CVS20060621-1; then
 
14
        rm -f /usr/share/doc/glade
 
15
    fi
 
16
  ;;
 
17
 
 
18
  install|abort-upgrade)
 
19
  ;;
 
20
 
 
21
  *)
 
22
    echo "preinst called with unknown argument \`$action'" >&2
 
23
    exit 1
 
24
  ;;
 
25
esac
 
26
 
 
27
#DEBHELPER#