From 0890e7d507cdb6e681ab9fea4c5c4a5411081e2b Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Thu, 7 Aug 2014 16:50:39 +0000 Subject: debian/rules.real: Filter installed documentation svn path=/dists/trunk/linux/; revision=21701 --- debian/rules.real | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'debian/rules.real') diff --git a/debian/rules.real b/debian/rules.real index 1dabb3f66f6b..35d4698595b5 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -196,12 +196,13 @@ install-doc: DH_OPTIONS = -p$(PACKAGE_NAME) install-doc: $(STAMPS_DIR)/build-doc dh_prep mkdir -p $(OUT_DIR) - cp -a CREDITS MAINTAINERS README REPORTING-BUGS Documentation $(OUT_DIR) - rm -rf $(OUT_DIR)/Documentation/DocBook + set -o pipefail; \ + find CREDITS MAINTAINERS README REPORTING-BUGS Documentation \ + -name '.gitignore' -prune -o -name DocBook -print -o -print | \ + cpio -pd --preserve-modification-time '$(CURDIR)/$(OUT_DIR)' set -o pipefail; \ cd $(DIR)/Documentation/DocBook; \ - find * -name '*.html' -print \ - | \ + find * -name '*.html' -print | \ cpio -pd --preserve-modification-time '$(CURDIR)/$(OUT_DIR)/html' gzip -9qfr $(OUT_DIR)/Documentation +$(MAKE_SELF) install-base -- cgit v1.2.3