diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2010-08-24 18:49:27 +0400 |
---|---|---|
committer | Nikolai Kondrashov <spbnick@gmail.com> | 2010-08-24 18:49:27 +0400 |
commit | bdcd22d40019acce8f0fb9e98b303876d5b627f9 (patch) | |
tree | 14f2fae2ce2f18141dd5687f5c9045abd6f30540 | |
parent | 539c0446f4f84df6452e17a16253f18a84a81ac8 (diff) | |
download | usbhid-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.am | 12 |
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 + |