]> granicus.if.org Git - strace/commitdiff
CREDITS: fix generation in out of tree builds
authorMike Frysinger <vapier@gentoo.org>
Thu, 14 Aug 2014 08:05:37 +0000 (04:05 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 14 Aug 2014 23:30:15 +0000 (23:30 +0000)
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

index be059462d293e3fe359ecc1505b462c72565535d..a30ac1c09ad5460cc2c48f74b7de5f21df3ac8c2 100644 (file)
@@ -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