Support versions of git older than 1.8.5
authorAnthony Green <green@moxielogic.com>
Sun, 11 May 2014 14:22:30 +0000 (10:22 -0400)
committerAnthony Green <green@moxielogic.com>
Sun, 11 May 2014 14:22:30 +0000 (10:22 -0400)
Makefile.am

index 3154e8f..1dcdc81 100644 (file)
@@ -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