mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
d739331a67
a resized 16x16 bitmap font) by CMEX and DynaLab for the X Window System (PCF). This is one of the few Big5 or Big5+ Chinese bitmap fonts on the Internet that is DFSG-compliant. The font was designed by DynaLab and released by CMEX as part of the proposed Big5+ standard documentation. It was then converted to HBF and BDF format and further modified by Wei-Lun Chao in September 1998. Submitted by: statue@freebsd.sinica.edu.tw Handed to me via: keichii
23 lines
653 B
Bash
23 lines
653 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
fontdir="/usr/X11R6/lib/X11/fonts/local"
|
|
|
|
# $fontdir no longer exists;
|
|
# remove the FontPath from /etc/X11/XF86Config
|
|
|
|
if [ -f /etc/X11/XF86Config ]
|
|
then
|
|
echo "Removing FontPath \"$fontdir\" from /etc/X11/XF86Config ..."
|
|
tmpfile="/tmp/tempfile"
|
|
sed -e '/Section *"Files"/,/EndSection/{' \
|
|
-e "\\%^ *FontPath *[\"']$fontdir%d" \
|
|
-e '}' /etc/X11/XF86Config >> $tmpfile
|
|
mv -f $tmpfile /etc/X11/XF86Config
|
|
else
|
|
echo "/etc/X11/XF86Config not found!"
|
|
echo "You need to remove the line"
|
|
echo " FontPath \"$fontdir/:unscaled\""
|
|
echo "from /etc/X11/XF86Config yourself, otherwise X may fail to work."
|
|
fi
|