~ubuntu-branches/ubuntu/saucy/big-cursor/saucy

« back to all changes in this revision

Viewing changes to debian/preinst

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-26 18:13:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020126181343-j75x92aunh23w2y1
Tags: 3.0
* Use dh_installxfonts, so I can test that program.
* Moved font to fonts/misc directory, to comply with policy, and for easier
  installation. If you had the fonts/big-cursor directory in your
  XF86Config, you can remove it now. I have to divert the regular cursor
  font out of the way to make this work.
* Renamed the file to big-cursor.pcf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
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
 
11
        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 
 
14
fi
 
15
                
 
16
#DEBHELPER#