X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=aclocal.m4;fp=aclocal.m4;h=ed3d006cbf1e0d31584b0d3af5986ae14fd97dfb;hp=0e72d22afb856bbce0152614198d64a90902f7d5;hb=3c287486b41b5f99b20f700a61f5897940403aaf;hpb=44315e136cf9bc994185e689babec649c127e045 diff --git a/aclocal.m4 b/aclocal.m4 index 0e72d22..ed3d006 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1116,7 +1116,7 @@ if test "$RELEASE" = "NO"; then AC_MSG_RESULT(given $PACKAGE_VERSION) elif test -d .git; then changequote(, )dnl - ver_date=`git log -n 1 --date=short --pretty=format:%ci | sed "s/^.*\([0-9][0-9][0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9]\).*$/\1\2\3/"` + ver_date=`git log -n 1 --date=short --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -` if echo $ver_date | grep '^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$' 2>&1 >/dev/null; then true; else changequote([, ])dnl AC_MSG_ERROR([failed to detect version date: check that git is in your path])