From e6c54017a7fbf4009454577a445530a7649f2c4f Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 27 Mar 2016 23:31:36 +0200 Subject: Fix out-of-tree "gen-authors" target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change directory to the source tree before invoking `git shortlog`, otherwise it fails on build directories outside the source tree. Alexis suggested to move the git invocation to the perl script, this is done now and also avoids writing AUTHORS.git in the source tree. Change-Id: I5905ebf40d8d32a586c88671b52f28c542ca33ba Reviewed-on: https://code.wireshark.org/review/14660 Reviewed-by: João Valverde Reviewed-by: Gerald Combs Reviewed-by: Peter Wu --- Makefile.am | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 90eb45abec..c0d6f24395 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1071,7 +1071,6 @@ if HAVE_DOXYGEN zip -rq wsar_html.zip wsar_html endif +# Update AUTHORS file with entries from git shortlog gen-authors: -#Generate list of AUTHORS (Name + E-Mail) sort by number of commit - git --no-pager shortlog -se HEAD > $(top_srcdir)/AUTHORS.git - $(PERL) $(top_srcdir)/tools/generate_authors.pl $(top_srcdir)/AUTHORS.src $(top_srcdir)/AUTHORS.git > $(top_srcdir)/AUTHORS + cd $(top_srcdir) && $(PERL) tools/generate_authors.pl AUTHORS.src > AUTHORS -- cgit v1.2.1