Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] vim: Add post-install hook to remove documentation from target
@ 2013-02-12 10:51 Markos Chandras
  2013-02-12 11:23 ` Thomas Petazzoni
  2013-02-19 11:42 ` Peter Korsgaard
  0 siblings, 2 replies; 8+ messages in thread
From: Markos Chandras @ 2013-02-12 10:51 UTC (permalink / raw)
  To: buildroot

From: Markos Chandras <markos.chandras@imgtec.com>

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
 package/vim/vim.mk |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/package/vim/vim.mk b/package/vim/vim.mk
index fa5f8ae..4e273d4 100644
--- a/package/vim/vim.mk
+++ b/package/vim/vim.mk
@@ -36,8 +36,16 @@ define VIM_INSTALL_RUNTIME_CMDS
 		$(MAKE) DESTDIR=$(TARGET_DIR) installmacros
 endef
 
+define VIM_REMOVE_DOCS
+	find $(TARGET_DIR)/usr/share/vim -type f -name "*.txt" -delete
+endef
+
 ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y)
 VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS
 endif
 
+ifneq ($(BR2_HAVE_DOCUMENTATION),y)
+VIM_POST_INSTALL_TARGET_HOOKS += VIM_REMOVE_DOCS
+endif
+
 $(eval $(autotools-package))
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-19 15:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-12 10:51 [Buildroot] [PATCH v2] vim: Add post-install hook to remove documentation from target Markos Chandras
2013-02-12 11:23 ` Thomas Petazzoni
2013-02-12 11:59   ` Markos Chandras
2013-02-12 12:08     ` Thomas Petazzoni
2013-02-19 10:58       ` Markos Chandras
2013-02-19 11:42 ` Peter Korsgaard
2013-02-19 15:19   ` Peter Korsgaard
2013-02-19 15:30     ` Markos Chandras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox