~ubuntu-branches/ubuntu/oneiric/big-cursor/oneiric

« back to all changes in this revision

Viewing changes to debian/preinst

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2006-04-17 15:56:45 UTC
  • Revision ID: james.westby@ubuntu.com-20060417155645-ly8j3irp1t9fprvd
Tags: 3.6
Rebuilt with debhelper 5.0.31 which has more dh_installxfonts fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
set -e
3
3
 
4
 
# Divert the regular cursor font out of the way, so our font is used
5
 
# instead. This has to happen before update-font-dir, which is why it's in
6
 
# the preinst here; if this package and xfonts-base are installed at the
7
 
# same time, it needs to run before that package is unpacked.
8
 
if [ "$1" = install -o "$1" = upgrade ] &&
9
 
   dpkg --compare-versions "$2" lt "3.0"
10
 
then
 
4
if [ "$1" = install ] || [ "$1" = upgrade ]; then
 
5
        # Deal with font move in upgrade.
 
6
        if dpkg --compare-versions "$2" lt 3.5; then
 
7
                dpkg-divert --package big-cursor --remove --rename --divert \
 
8
                        /usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz-small \
 
9
                        /usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz
 
10
        fi
 
11
 
 
12
        # Divert the regular cursor font out of the way, so our font is used
 
13
        # instead. This has to happen before update-font-dir, which is why it's in
 
14
        # the preinst here; if this package and xfonts-base are installed at the
 
15
        # same time, it needs to run before that package is unpacked.
11
16
        dpkg-divert --package big-cursor --add --rename --divert \
12
 
                /usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz-small \
13
 
                /usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz 
 
17
                /usr/share/fonts/X11/misc/cursor.pcf.gz-small \
 
18
                /usr/share/fonts/X11/misc/cursor.pcf.gz 
14
19
fi
15
 
                
 
20
 
16
21
#DEBHELPER#