浏览代码

wireshark: remove documentation

Remove html and txt documentation from the rootfs as they unlikely to be
needed.

[Peter: use xargs instead of GNU extensions as suggested by Yann]
Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Gilles Chanteperdrix 9 年之前
父节点
当前提交
0fee4f51ac
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      package/wireshark/wireshark.mk

+ 7 - 0
package/wireshark/wireshark.mk

@@ -99,4 +99,11 @@ else
 WIRESHARK_CONF_OPTS += --with-sbc=no
 endif
 
+define WIRESHARK_REMOVE_DOCS
+	find $(TARGET_DIR)/usr/share/wireshark -name '*.txt' -print0 \
+		-o -name '*.html' -print0 | xargs -0 rm -f
+endef
+
+WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS
+
 $(eval $(autotools-package))