aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-01-31 08:28:56 +0800
committerclive <clive@FreeBSD.org>2001-01-31 08:28:56 +0800
commitfb3e9b63d628502616192914e324845939efcace (patch)
tree9b2d75d42da62940b66b6412dce3234e8f3b0b20 /chinese
parent644de10ddcdad7fd9d21d8cc3e44c8855dc20b16 (diff)
downloadfreebsd-ports-gnome-fb3e9b63d628502616192914e324845939efcace.tar.gz
freebsd-ports-gnome-fb3e9b63d628502616192914e324845939efcace.tar.zst
freebsd-ports-gnome-fb3e9b63d628502616192914e324845939efcace.zip
If there's no other fonts under ${X11BASE}/lib/X11/fonts/local
( [ `\head fonts.dir` = 0 ] ), just kill fonts.dir Submitted by: bento (mtree error)
Diffstat (limited to 'chinese')
-rw-r--r--chinese/kcfonts/pkg-plist1
1 files changed, 1 insertions, 0 deletions
diff --git a/chinese/kcfonts/pkg-plist b/chinese/kcfonts/pkg-plist
index e5f3e5aaf9e8..9d60e65d5937 100644
--- a/chinese/kcfonts/pkg-plist
+++ b/chinese/kcfonts/pkg-plist
@@ -7,4 +7,5 @@ lib/X11/fonts/local/kc_fonts.alias
@exec cd %D/lib/X11/fonts/local ; cat kc_fonts.alias >> fonts.alias ; cp fonts.alias ..fonts.alias.. ; sort ..fonts.alias.. | uniq > fonts.alias ; rm ..fonts.alias..
@unexec cd %D/lib/X11/fonts/local ; %D/bin/mkfontdir
@unexec if [ -s %D/lib/X11/fonts/local/fonts.alias ]; then perl -e 'while (<>) { if (!/kc-fixed/) { print <>} }' < %D/lib/X11/fonts/local/fonts.alias > /tmp/fonts.alias.$$; mv /tmp/fonts.alias.$$ %D/lib/X11/fonts/local/fonts.alias; fi
+@unexec if [ `\head -1 %D/lib/X11/fonts/local/fonts.dir` = 0 ]; then rm -f %D/lib/X11/fonts/local/fonts.dir; fi
@unexec if [ ! -s %D/lib/X11/fonts/local/fonts.alias ]; then rm -f %D/lib/X11/fonts/local/fonts.alias; fi