chiark / gitweb /
fixes
[xfonts-traditional] / debian / xfonts-traditional.prerm
CommitLineData
12fa1ef8
IJ
1#!/bin/sh
2set -e
3
4. /usr/share/debconf/confmodule
5
6case "$1" in
7
8remove)
9
fb8fab66 10 echo 'Checking that "fixed" is not from xfonts-traditional...'
12fa1ef8
IJ
11
12 if grep '^fixed[ ][ ]*-trad-'; then
fb8fab66 13 cat >&2 <<'END'
489ffe21 14Removing xfonts-traditional would break your X server by removing "fixed".
4ff07717 15
12fa1ef8
IJ
16You should not remove xfonts-traditional while "fixed" refers to one
17of its fonts. You probably want to check the differences between
18/etc/X11/fonts/misc/xfonts-base.alias and xfonts-base.alias.not-trad,
19and probably replace the former with the latter, and retry the removal.
4ff07717 20
12fa1ef8 21END
4ff07717
IJ
22 printf 'Continue anyway ? [n/y] '
23 read x
24 case "$x" in
25 y*|Y*) ;;
26 *) exit 1 ;;
27 esac
12fa1ef8
IJ
28 fi
29
12fa1ef8
IJ
30 find /usr/share/fonts/X11 /usr/local/share/fonts/X11 \
31 -type f \
32 \( -name xfonts-traditional.log -o \
33 -name xfonts-traditional.done -o
34 -name xfonts-traditional.done.new -o
35 -name trad--\*.pcf.gz.new \) \
fb8fab66 36 -print0 | xargs -0r rm --
12fa1ef8
IJ
37
38 find /usr/share/fonts/X11 /usr/local/share/fonts/X11 \
39 -type f \
40 -name trad--\*.pcf.gz \
fb8fab66 41 -print0 | xargs -0r rm --
12fa1ef8 42
489ffe21
IJ
43 ;;
44
12fa1ef8 45esac