summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2010-08-24 18:49:27 +0400
committerNikolai Kondrashov <spbnick@gmail.com>2010-08-24 18:49:27 +0400
commitbdcd22d40019acce8f0fb9e98b303876d5b627f9 (patch)
tree14f2fae2ce2f18141dd5687f5c9045abd6f30540
parent539c0446f4f84df6452e17a16253f18a84a81ac8 (diff)
downloadusbhid-dump-bdcd22d40019acce8f0fb9e98b303876d5b627f9.tar.gz
Added ChangeLog generation
Added ChangeLog generation from git log to top Makefile.am Based on the code taken from http://live.gnome.org/Git/ChangeLog.
-rw-r--r--Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 56f6298..2ae0fa1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,3 +21,15 @@ SUBDIRS = include lib src
dist_noinst_SCRIPTS = bootstrap
ACLOCAL_AMFLAGS = -I m4
+
+dist-hook:
+ @if test -d "$(top_srcdir)/.git"; then \
+ echo Generating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ auxdir/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 Skipping ChangeLog generation: no git repository >&2; \
+ fi
+