1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/chinese/cxterm/files/patch-ab
1997-02-04 11:14:55 +00:00

23 lines
672 B
Plaintext

--- scripts/CXterm.sh.orig Tue Jan 31 20:05:00 1995
+++ scripts/CXterm.sh Sat Aug 24 14:36:03 1996
@@ -11,14 +11,17 @@
check_use_font ()
{
for f in "$@" ; do
- if [ "`xlsfonts $f 2>/dev/null`" = "$f" ]; then
+ # the awk'ing is needed if $f exists in more than one font dir - DEO
+ TRYFONT=`xlsfonts $f 2>/dev/null | /usr/bin/awk '{print $1 ; exit}'`
+ if [ "$TRYFONT" = "$f" ]; then
echo $f
return 0
fi
done
xset fp+ "$XFONTDIR"
for f in "$@" ; do
- if [ "`xlsfonts $f 2>/dev/null`" = "$f" ]; then
+ TRYFONT=`xlsfonts $f 2>/dev/null | /usr/bin/awk '{print $1 ; exit}'`
+ if [ "$TRYFONT" = "$f" ]; then
echo $f
return 0
fi