]> diplodocus.org Git - nmh/commitdiff
Make generating the ChangeLog work if you're building a distribution from
authorKen Hornstein <kenh@pobox.com>
Wed, 20 Feb 2013 02:57:32 +0000 (21:57 -0500)
committerKen Hornstein <kenh@pobox.com>
Wed, 20 Feb 2013 02:57:32 +0000 (21:57 -0500)
an object directory.

Makefile.am

index 3952da6a9c1924bfc9f06aa47ef3d6c6b0f016fd..48b2ba8053186b579341e8650379c22f359c0d0c 100644 (file)
@@ -596,8 +596,8 @@ cleanman:
 
 ## Don't include commit hashes in ChangeLog.
 ChangeLog:
 
 ## Don't include commit hashes in ChangeLog.
 ChangeLog:
-       @[ -d .git ]  &&  git --no-pager log --abbrev-commit | \
-           egrep -v '^commit [0-9a-f]+$$' > $@  ||  true
+       @[ -d $(srcdir)/.git ]  &&  (cd $(srcdir); git --no-pager log --abbrev-commit | \
+           egrep -v '^commit [0-9a-f]+$$' > $@)  ||  true
 ## Make ChangeLog phony so it will always get regenerated.  But don't
 ## fail if we don't have a git repository in order to allow
 ## regeneration of distribution archive or RPM.
 ## Make ChangeLog phony so it will always get regenerated.  But don't
 ## fail if we don't have a git repository in order to allow
 ## regeneration of distribution archive or RPM.