[commit: ghc] master: Remove dead darcs handling from configure. (c894db1)

David Terei davidterei at gmail.com
Thu Feb 14 04:11:08 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c894db1527b3c63310e450b84a15743c32c6f0a5

>---------------------------------------------------------------

commit c894db1527b3c63310e450b84a15743c32c6f0a5
Author: David Terei <davidterei at gmail.com>
Date:   Sun Feb 10 23:30:55 2013 -0800

    Remove dead darcs handling from configure.

>---------------------------------------------------------------

 aclocal.m4 |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index fca0304..942d6bb 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1498,21 +1498,11 @@ if test "$RELEASE" = "NO"; then
         fi
         PACKAGE_VERSION=${PACKAGE_VERSION}.$ver_date
         AC_MSG_RESULT(inferred $PACKAGE_VERSION)
-    elif test -d _darcs; then
-        # TODO: Remove this branch after conversion to Git
-        changequote(, )dnl
-        ver_date=`darcs changes --quiet --no-summary --xml | head -500 | grep 'date=' | sed "s/^.*date='\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\).*$/\1/g" | ${SortCmd} -n | tail -1`
-        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 darcs is in your path])
-        fi
-        PACKAGE_VERSION=${PACKAGE_VERSION}.$ver_date
-        AC_MSG_RESULT(inferred $PACKAGE_VERSION)
     elif test -f VERSION; then
         PACKAGE_VERSION=`cat VERSION`
         AC_MSG_RESULT(given $PACKAGE_VERSION)
     else
-        AC_MSG_WARN([cannot determine snapshot version: no .git or _darcs directory and no VERSION file])
+        AC_MSG_WARN([cannot determine snapshot version: no .git directory and no VERSION file])
     fi
 fi
 





More information about the ghc-commits mailing list