diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-08-14 04:05:37 -0400 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-08-14 23:30:15 +0000 |
commit | 67c4d437babbfe738a5f3bcd3b979e3864902595 (patch) | |
tree | 7656ddda3dd81b7aa0aa69869cf22cc87929f64b | |
parent | a80c636fd0c3aade07adac23510a2732963e2fef (diff) | |
download | strace-67c4d437babbfe738a5f3bcd3b979e3864902595.tar.gz |
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 (...).
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index be059462d..a30ac1c09 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 |