Permalink
Browse files

autogenerate ChangeLog

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  • Loading branch information...
1 parent f51cbce commit 0dfe52705859bc7aa8c952850315150fb6db9cc0 @Keruspe committed Jun 29, 2011
Showing with 19 additions and 0 deletions.
  1. +4 −0 ChangeLog
  2. +15 −0 Makefile.am
View
@@ -0,0 +1,4 @@
+2011-06-29 Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
+
+ * *: The ChangeLog is autogenerated when releasing, see git log for changes
+
View
@@ -195,3 +195,18 @@ gpaste.1: data/gpaste.pod
CLEANFILES += $(gpasteman_DATA)
EXTRA_DIST += data/gpaste.pod
+# Generate a ChangeLog file from 'git log'
+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 0dfe527

Please sign in to comment.