diff options
author | Jim Meyering <meyering@redhat.com> | 2008-02-09 15:43:21 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-02-09 15:43:21 +0100 |
commit | fee11f84568c414b590317098803bba39014e9a1 (patch) | |
tree | 3bb9c46595e2369b325e36c9bc155ab6f4dabb2a | |
parent | d8dd732d00c31946ee4570ce04b9960c2ad6826b (diff) | |
download | idutils-4.3.90.tar.gz idutils-4.3.90.tar.bz2 idutils-4.3.90.zip |
* Makefile.am (dist-hook): Write ChangeLog only if .git/ exists.v4.3.90
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 22d1a59..7d63db1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,6 +27,9 @@ distcheck-hook: fi dist-hook: - $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-01-01 \ - > $(distdir)/cl-t - mv $(distdir)/cl-t $(distdir)/ChangeLog + if test -d .git; then \ + $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-01-01 \ + > $(distdir)/cl-t; \ + rm -f $(distdir)/ChangeLog; \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + fi |