From: Luca Bruno Date: Wed, 3 Aug 2011 13:20:06 +0000 (+0100) Subject: Automatically generate ChangeLog from git log for release tarball X-Git-Tag: v0.5.0~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0d7a948c8d67abbf6d24fd8687fda96eae23f95b;p=openocd Automatically generate ChangeLog from git log for release tarball make dist should use git2cl to generate ChangeLog from git history, populating the placeholder file in released tarball. Signed-off-by: Luca Bruno Signed-off-by: Spencer Oliver --- diff --git a/Makefile.am b/Makefile.am index 461bca49..7bc25af2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -68,6 +68,9 @@ TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \ sed -e 's,^$(srcdir)/$(TCL_PATH),,' dist-hook: + if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \ + git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \ + fi for i in $$($(TCL_FILES)); do \ j="$(distdir)/$(TCL_PATH)/$$i" && \ mkdir -p "$$(dirname $$j)" && \