Commit 0c2251a42df5108b6d9ebe5fe1cf83d0bcdf660e

Anthony Green 2014-05-11T10:22:30

Support versions of git older than 1.8.5

1
2
3
4
5
6
7
8
9
10
diff --git a/Makefile.am b/Makefile.am
index 3154e8f..1dcdc81 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -251,4 +251,4 @@ AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
 AM_CCASFLAGS = $(AM_CPPFLAGS)
 
 dist-hook:
-	if [ -d $(top_srcdir)/.git ] ; then git -C $(top_srcdir) log --no-decorate ; else echo 'See git log for history.' ; fi > $(distdir)/ChangeLog
+	if [ -d $(top_srcdir)/.git ] ; then (cd $(top_srcdir); git log --no-decorate) ; else echo 'See git log for history.' ; fi > $(distdir)/ChangeLog