From 67c4d437babbfe738a5f3bcd3b979e3864902595 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 14 Aug 2014 04:05:37 -0400 Subject: [PATCH] CREDITS: fix generation in out of tree builds The {...} code changes the working dir with `cd`, but the commands outside of that block expects to be in the original dir. Change to a subshell so the path outside of this block remains unchanged. * Makefile.am ($(srcdir)/CREDITS): Change {...} to (...). --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index be059462..a30ac1c0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -271,14 +271,14 @@ $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \ $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \ $(srcdir)/Makefile.in $(srcdir)/.version $(AM_V_GEN) \ - { \ + ( \ cd $(srcdir); \ sed '/^##/,$$d' CREDITS.in; \ { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \ git log --pretty=format:'%aN %aE'; \ } | LC_ALL=C sort -u \ | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \ - } > $@-t && mv $@-t $@ + ) > $@-t && mv $@-t $@ export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX -- 2.40.0