make dist should use git2cl to genereate ChangeLog from git history,
populating the placeholder file in released tarball.

Signed-off-by: Luca Bruno <lu...@debian.org>
---
 Makefile.am |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1b19ba4..d2a18cc 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 \
+               $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
+       fi
        for i in $$($(TCL_FILES)); do \
                j="$(distdir)/$(TCL_PATH)/$$i" && \
                mkdir -p "$$(dirname $$j)" && \
-- 
1.7.5.4

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to