From 0d3304af3806a28d7756fba9d4eb714339c3eaf1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 18 Jun 2015 22:04:58 +0200 Subject: [PATCH] Disallow installing "man pages" from release subdir * Makefile.in (install-man): Exclude release subdir from search paths. Signed-off-by: Corinna Vinschen --- 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 58a382158..5229f0c2d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2015-06-18 Corinna Vinschen + + * Makefile.in (install-man): Exclude release subdir from search paths. + 2015-06-17 Corinna Vinschen * net.cc (sethostname): New function. diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index d8277548f..271a5be1b 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