2 # run from the prerm and postinst
8 dckey
=$1; regexp
=$2; file=$3
10 if ! test -f
$file; then return; fi
13 if test -e
$file.not-trad
; then return; fi
17 oldfile
=$file.not-trad
19 if ! test -e
$file.not-trad
; then return; fi
22 newfile
=$file.undo-trad
27 s/^('"$regexp"'\s+)\-'$before'\-(fixed-medium-r-semicondensed)/$1-'$after'-$2/
29 if cmp -s
$file $newfile; then
35 if [ $RET != true
]; then return; fi
38 db_get
$dckey-done || true
39 if [ $RET = true
]; then return; fi
41 echo "Updating $file to use traditional fixed..."
43 echo "Restoring $file with nontraditional fixed..."
50 *.
alias) update-fonts-alias misc
;;
53 db_set
$dckey-done
$install
54 # only ever do this once, unless we've actually undone it since
57 echo "Checking configuration..."
59 check_file reconfigure-xterm
'\*VT100\.utf8Fonts\.font\:' \
60 /etc
/X11
/app-defaults
/XTerm
62 check_file remap-fixed
'fixed' \
63 /etc
/X11
/fonts
/misc
/xfonts-base.
alias