build: remove *.luadoc files before packaging
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 28 Jan 2015 21:29:03 +0000 (22:29 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 28 Jan 2015 21:29:03 +0000 (22:29 +0100)
luci.mk

diff --git a/luci.mk b/luci.mk
index 0aba5c5ae6dfb41b99a0d133975d8bc83afac2ba..ab09f0f4f5d3b7d8297327a4089dd7e6e2bf1475 100644 (file)
--- a/luci.mk
+++ b/luci.mk
@@ -147,6 +147,7 @@ define Package/$(PKG_NAME)/install
        if [ -d $(PKG_BUILD_DIR)/luasrc ]; then \
          $(INSTALL_DIR) $(1)$(LUCI_LIBRARYDIR); \
          cp -pR $(PKG_BUILD_DIR)/luasrc/* $(1)$(LUCI_LIBRARYDIR)/; \
+         $(FIND) $(1)$(LUCI_LIBRARYDIR)/ -type f -name '*.luadoc' | $(XARGS) rm; \
          $(if $(CONFIG_LUCI_SRCDIET),$(call SrcDiet,$(1)$(LUCI_LIBRARYDIR)/),true); \
        else true; fi
        if [ -d $(PKG_BUILD_DIR)/htdocs ]; then \