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"
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
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