1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/chinese/cmexfonts/pkg-deinstall
Clive Lin d739331a67 This package contains the standard Big5+ Chinese Ming 24x24 bitmap font (and
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
2001-07-30 05:52:39 +00:00

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