aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/k12
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-06-01 14:46:32 +0800
committerasami <asami@FreeBSD.org>2000-06-01 14:46:32 +0800
commit92170126a08edf49e32c345c624893dd842ed7de (patch)
tree671aad50e217d29cd957e667904457479f03ed5e /japanese/k12
parent272323e5ce0d55c612b70d1af2ccbde6a5ae673a (diff)
downloadfreebsd-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 'japanese/k12')
-rw-r--r--japanese/k12/pkg-plist2
1 files changed, 2 insertions, 0 deletions
diff --git a/japanese/k12/pkg-plist b/japanese/k12/pkg-plist
index 4a15dfc85a93..91b887128e26 100644
--- a/japanese/k12/pkg-plist
+++ b/japanese/k12/pkg-plist
@@ -11,4 +11,6 @@ share/doc/k12/readme.kaname_bdf
share/doc/k12/readme.knm
@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
@unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
+@unexec if [ `wc -c %D/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ]; then rm -f %D/%%FONTSDIR%%/fonts.dir; fi
+@unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi
@dirrm share/doc/k12