chiark / gitweb /
debian/copyright: Explain the origin and copyright status of 6x13O.
[xfonts-traditional] / debian / xfonts-traditional.prerm
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4. /usr/share/debconf/confmodule
5
6#DEBHELPER#
7
8/usr/share/xfonts-traditional/checkfiles prerm "$@"
9
10case "$1" in
11
12remove)
13
14 echo 'Checking that "fixed" is not from xfonts-traditional...'
15
16 if grep '^fixed[ ][ ]*-trad-' \
17 /etc/X11/fonts/misc/xfonts-base.alias \
18 /usr/share/fonts/X11/misc/fonts.alias; then
19
20 RET=''
21 db_input critical xfonts-traditional/confirm-break-remove ||:
22 db_go ||:
23 db_get xfonts-traditional/confirm-break-remove ||:
24 if [ x$RET != xtrue ]; then
25 db_fset xfonts-traditional/confirm-break-remove \
26 seen false ||:
27 echo 'Aborting to avoid breaking "fixed".' >&2
28 exit 1
29 fi
30 fi
31
32 for d in /usr/share/fonts/X11 /usr/local/share/fonts/X11; do
33 if ! test -e "$d"; then continue; fi
34
35 find "$d" \
36 -type f \
37 \( -name xfonts-traditional.log -o \
38 -name xfonts-traditional.done -o \
39 -name xfonts-traditional.done.new -o \
40 -name trad--\*.pcf.gz.new \) \
41 -print0 | xargs -0r rm --
42
43 find "$d" \
44 -type f \
45 -name trad--\*.pcf.gz \
46 -print0 | xargs -0r rm --
47 done
48
49 ;;
50
51esac