commit: 58f7be0fe8ba7c8419a389681a7ea22555545215
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 22 20:30:24 2014 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Apr 22 20:30:24 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=58f7be0f
pym: be more careful installing ALL files
---
pym/Makefile.in | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/pym/Makefile.in b/pym/Makefile.in
index c1025f6..dad4ed3 100644
--- a/pym/Makefile.in
+++ b/pym/Makefile.in
@@ -21,13 +21,19 @@ all:
install:
$(INSTALL) -d -m 755 -o "$(portageuser)" -g "$(portagegroup)"
$(DESTDIR)$(PORTAGE_PYM)
( cd "$(srcdir)" && find * -type d ) | while read f ; do \
+ files=( ) ; \
+ for t in "$(srcdir)/$${f}"/* ; do \
+ [[ -d $${t} ]] && continue ; \
+ [[ $${t} == */Makefile* ]] && continue ; \
+ files=( "$${files[@]}" "$${t}" ) ; \
+ done ; \
$(INSTALL) -d -m 755 \
-o "$(portageuser)" -g "$(portagegroup)" \
"$(DESTDIR)$(PORTAGE_PYM)/$${f}" && \
$(INSTALL_subst) \
-o "$(portageuser)" -g "$(portagegroup)" \
-t "$(DESTDIR)$(PORTAGE_PYM)/$${f}" \
- "$(srcdir)/$${f}"/* \
+ "$${files[@]}" \
; done
.PHONY: all install