diff options
author | Clive Lin <clive@FreeBSD.org> | 2001-01-31 00:28:56 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2001-01-31 00:28:56 +0000 |
commit | 3109cc202d78dfc71eb7694233312537223839d9 (patch) | |
tree | 6c3fa641fee8bc69695ead46a83e427f375dc5cb /chinese/kcfonts | |
parent | 7f2f27f0828de1bd691fb262f70352494a451cc7 (diff) | |
download | freebsd-ports-3109cc202d78dfc71eb7694233312537223839d9.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/kcfonts')
-rw-r--r-- | chinese/kcfonts/pkg-plist | 1 |
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 |