]> git.sur5r.net Git - openocd/commitdiff
Automatically generate ChangeLog from git log for release tarball
authorLuca Bruno <lucab@debian.org>
Wed, 3 Aug 2011 13:20:06 +0000 (14:20 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Wed, 3 Aug 2011 16:36:57 +0000 (17:36 +0100)
make dist should use git2cl to generate ChangeLog from git history,
populating the placeholder file in released tarball.

Signed-off-by: Luca Bruno <lucab@debian.org>
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Makefile.am

index 461bca4999b23f10f4f8a982d0a5841c516a0e2f..7bc25af26db0c0d479c1945a98671ad0635d11a9 100644 (file)
@@ -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)" && \