summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-21 18:02:49 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-21 18:02:49 (EDT)
commit4ba141f1c5cc4de2138079d43eaf24297dc9184b (patch)
treef41831b6f1cedfbacedfc664ebcb7e9461378ecc
parentf79bf9c6d257ca72d1066368e8d66cd3e58302dd (diff)
build: Clean up /usr/share/{man,info}.
-rwxr-xr-xbuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/build b/build
index a78112f..0e3cc8f 100755
--- a/build
+++ b/build
@@ -164,6 +164,11 @@ install: build
dest/usr/lib/$(OPK_HOST_ARCH)/libitm.la \
dest/usr/lib/$(OPK_HOST_ARCH)/libstdc++.la \
dest/usr/lib/$(OPK_HOST_ARCH)/libsupc++.la
+ # Remove the info directory node.
+ rm -f dest/usr/share/info/dir
+ # Remove empty documentation files.
+ find dest/usr/share/man -type f -a -size 0c -a -exec rm -f '{}' ';'
+ find dest/usr/share/info -type f -a -size 0c -a -exec rm -f '{}' ';'
# POSIX.1-2008:
# If the pathname does not begin with a '/' it shall be treated as relative to