summaryrefslogtreecommitdiffstats
path: root/chinese/moettf
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-09-27 12:37:30 +0000
committerasami <asami@FreeBSD.org>2000-09-27 12:37:30 +0000
commit715cbdcf51c9e6d41b0e7b68a3a085ca8917475d (patch)
tree43d21ebe181ba24134959ecc9b0b773135c8b9df /chinese/moettf
parentbd144edba83b313cec54695b1cc771d53e512470 (diff)
downloadFreeBSD-ports-715cbdcf51c9e6d41b0e7b68a3a085ca8917475d.zip
FreeBSD-ports-715cbdcf51c9e6d41b0e7b68a3a085ca8917475d.tar.gz
Remove empty fonts.alias and fonts.dir files.
Submitted by: bento
Diffstat (limited to 'chinese/moettf')
-rw-r--r--chinese/moettf/pkg-plist2
1 files changed, 2 insertions, 0 deletions
diff --git a/chinese/moettf/pkg-plist b/chinese/moettf/pkg-plist
index 7b7bd1a..9c569c2 100644
--- a/chinese/moettf/pkg-plist
+++ b/chinese/moettf/pkg-plist
@@ -1,4 +1,6 @@
lib/X11/fonts/TrueType/moe_kai.ttf
lib/X11/fonts/TrueType/moe_lishu.ttf
lib/X11/fonts/TrueType/moe_sung.ttf
+@unexec if [ `wc -c %D/lib/X11/fonts/TrueType/fonts.dir | awk '{print $1}'` = 2 ]; then rm -f %D/lib/X11/fonts/TrueType/fonts.dir; fi
+@unexec if [ ! -s %D/lib/X11/fonts/TrueType/fonts.alias ]; then rm -f %D/lib/X11/fonts/TrueType/fonts.alias; fi
@unexec rmdir %D/lib/X11/fonts/TrueType 2>/dev/null || true
OpenPOWER on IntegriCloud