Commit | Line | Data |
---|---|---|
12fa1ef8 IJ |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | . /usr/share/debconf/confmodule | |
5 | ||
6 | case "$1" in | |
7 | ||
8 | remove) | |
9 | ||
10 | echo 'Checking that "fixed" is not from xfonts-traditional..." | |
11 | ||
12 | if grep '^fixed[ ][ ]*-trad-'; then | |
13 | cat >&2 <<END | |
4ff07717 IJ |
14 | Removing xfonts-traditional would probably your X server by removing "fixed". |
15 | ||
12fa1ef8 IJ |
16 | You should not remove xfonts-traditional while "fixed" refers to one |
17 | of its fonts. You probably want to check the differences between | |
18 | /etc/X11/fonts/misc/xfonts-base.alias and xfonts-base.alias.not-trad, | |
19 | and probably replace the former with the latter, and retry the removal. | |
4ff07717 | 20 | |
12fa1ef8 | 21 | END |
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 | ||
30 | ;; | |
31 | ||
32 | find /usr/share/fonts/X11 /usr/local/share/fonts/X11 \ | |
33 | -type f \ | |
34 | \( -name xfonts-traditional.log -o \ | |
35 | -name xfonts-traditional.done -o | |
36 | -name xfonts-traditional.done.new -o | |
37 | -name trad--\*.pcf.gz.new \) \ | |
38 | -print0 | xargs -0r rm | |
39 | ||
40 | find /usr/share/fonts/X11 /usr/local/share/fonts/X11 \ | |
41 | -type f \ | |
42 | -name trad--\*.pcf.gz \ | |
43 | -print0 | xargs -0r rm | |
44 | ||
45 | esac |