diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2010-11-13 20:36:45 +0300 |
---|---|---|
committer | Nikolai Kondrashov <spbnick@gmail.com> | 2010-11-13 20:39:57 +0300 |
commit | 3ef1aa3e27b4d46e7f05c700e38929cb82681bb6 (patch) | |
tree | 97e87e1146566c1a77c30a259fe9170ebdca3a54 | |
parent | 0bfa2572b00a0fe33dcb2a4b4b71a1d7501f7211 (diff) | |
download | usbhid-dump-3ef1aa3e27b4d46e7f05c700e38929cb82681bb6.tar.gz |
Fix ChangeLog generation
Fix ChangeLog generation if packaged as a subpackage. Make ChangeLog
generation mandatory.
-rw-r--r-- | Makefile.am | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index 2ae0fa1..a77f605 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,13 +23,14 @@ 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 ); \ + @set -e; \ + if test -d "$(srcdir)/.git"; then \ + echo Generating ChangeLog; \ + ( cd "$(srcdir)" && auxdir/missing --run git log ) > \ + ChangeLog.tmp; \ + mv -f ChangeLog.tmp "$(distdir)/ChangeLog"; \ else \ - echo Skipping ChangeLog generation: no git repository >&2; \ + echo Cannot generate ChangeLog: no .git directory >&2; \ + exit 1; \ fi |