diff options
author | asami <asami@FreeBSD.org> | 2000-06-01 14:46:32 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 2000-06-01 14:46:32 +0800 |
commit | 92170126a08edf49e32c345c624893dd842ed7de (patch) | |
tree | 671aad50e217d29cd957e667904457479f03ed5e /chinese | |
parent | 272323e5ce0d55c612b70d1af2ccbde6a5ae673a (diff) | |
download | freebsd-ports-gnome-92170126a08edf49e32c345c624893dd842ed7de.tar.gz freebsd-ports-gnome-92170126a08edf49e32c345c624893dd842ed7de.tar.zst freebsd-ports-gnome-92170126a08edf49e32c345c624893dd842ed7de.zip |
Remove empty fonts.dir and fonts.alias files. (Note chinese/kcfonts still
leaves fonts.alias behind -- it is not removing any entries from that file.)
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/kcfonts/pkg-plist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chinese/kcfonts/pkg-plist b/chinese/kcfonts/pkg-plist index 43edd48b3442..788d08f13866 100644 --- a/chinese/kcfonts/pkg-plist +++ b/chinese/kcfonts/pkg-plist @@ -6,3 +6,5 @@ lib/X11/fonts/local/kc_fonts.alias @exec cd %D/lib/X11/fonts/local ; %D/bin/mkfontdir @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 [ `wc -c %D/lib/X11/fonts/local/fonts.dir | awk '{print $1}'` = 2 ]; 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 |