DarcsConversion: aclocal.m4.patch

File aclocal.m4.patch, 1.5 KB (added by guest, 6 years ago)

aclocal.m4

  • aclocal.m4

    diff --git a/aclocal.m4 b/aclocal.m4
    index 3f0ec00..e24fa4b 100644
    a b if test "$RELEASE" = "NO"; then 
    988988    if test -f VERSION_DATE; then 
    989989        PACKAGE_VERSION=${PACKAGE_VERSION}.`cat VERSION_DATE` 
    990990        AC_MSG_RESULT(given $PACKAGE_VERSION) 
    991     elif test -d _darcs; then 
     991    elif test -d .git; then 
    992992        changequote(, )dnl 
    993         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" | sort -n | tail -1` 
     993        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/"` 
    994994        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 
    995995        changequote([, ])dnl 
    996                 AC_MSG_ERROR([failed to detect version date: check that darcs is in your path]) 
     996                AC_MSG_ERROR([failed to detect version date: check that git is in your path]) 
    997997        fi 
    998998        PACKAGE_VERSION=${PACKAGE_VERSION}.$ver_date 
    999999        AC_MSG_RESULT(inferred $PACKAGE_VERSION) 
    if test "$RELEASE" = "NO"; then 
    10011001        PACKAGE_VERSION=`cat VERSION` 
    10021002        AC_MSG_RESULT(given $PACKAGE_VERSION) 
    10031003    else 
    1004         AC_MSG_WARN([cannot determine snapshot version: no _darcs directory and no VERSION file]) 
     1004        AC_MSG_WARN([cannot determine snapshot version: no .git directory and no VERSION file]) 
    10051005    fi 
    10061006fi 
    10071007