Browse files

Automatically generate the ChangeLog file from git logs

  • Loading branch information...
1 parent 4beb83e commit b7f3159486f547cc892b5f2c8d9ecdfde27434c3 @thos thos committed Nov 18, 2009
Showing with 15 additions and 1 deletion.
  1. +2 −1 ChangeLog
  2. +13 −0 Makefile.am
View
3 ChangeLog
@@ -1,2 +1,3 @@
-
+The ChangeLog is auto-generated when releasing. If you are seeing this, use
+'git log' for a detailed list of changes.
View
13 Makefile.am
@@ -43,3 +43,16 @@ MAINTAINERCLEANFILES = \
-include $(top_srcdir)/git.mk
+dist-hook:
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+ || ( rm -f ChangeLog.tmp ; \
+ echo Failed to generate ChangeLog >&2 ); \
+ else \
+ echo A git clone is required to generate a ChangeLog >&2; \
+ fi

0 comments on commit b7f3159

Please sign in to comment.