This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Disallow installing "man pages" from release subdir
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 18 Jun 2015 20:05:11 -0000
- Subject: [newlib-cygwin] Disallow installing "man pages" from release subdir
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0d3304af3806a28d7756fba9d4eb714339c3eaf1
commit 0d3304af3806a28d7756fba9d4eb714339c3eaf1
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Jun 18 22:04:58 2015 +0200
Disallow installing "man pages" from release subdir
* Makefile.in (install-man): Exclude release subdir from search paths.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/ChangeLog | 4 ++++
winsup/cygwin/Makefile.in | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 58a3821..5229f0c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * Makefile.in (install-man): Exclude release subdir from search paths.
+
2015-06-17 Corinna Vinschen <corinna@vinschen.de>
* net.cc (sethostname): New function.
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index d827754..271a5be 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -505,16 +505,16 @@ install-headers:
install-man:
@$(MKDIRP) $(DESTDIR)$(mandir)/man2 $(DESTDIR)$(mandir)/man3 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man7
cd $(srcdir); \
- for i in `find . -type f -name '*.2'`; do \
+ for i in `find . -type f ! -path './release/*' -name '*.2'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man2/`basename $$i` ; \
done; \
- for i in `find . -type f -name '*.3'`; do \
+ for i in `find . -type f ! -path './release/*' -name '*.3'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man3/`basename $$i` ; \
done; \
- for i in `find . -type f -name '*.5'`; do \
+ for i in `find . -type f ! -path './release/*' -name '*.5'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man5/`basename $$i` ; \
done; \
- for i in `find . -type f -name '*.7'`; do \
+ for i in `find . -type f ! -path './release/*' -name '*.7'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man7/`basename $$i` ; \
done