From a11b51c254dc336f92a564f253f7be310d6d68ef Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Fri, 27 Jun 2014 00:59:00 +0200 Subject: scripts: first batch of hg->git conversion Replace calls to 'hg' with as-close-as-possible equivalents in git. Signed-off-by: "Yann E. MORIN" --- configure.ac | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6b771639..fd69af21 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,6 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.67]) -#AC_INIT([crosstool-NG], [hg], [crossgcc@sourceware.org]) AC_INIT([crosstool-NG], [m4_esyscmd_s([cat .version])], [crossgcc@sourceware.org]) AC_CONFIG_AUX_DIR([scripts]) @@ -360,10 +359,8 @@ AS_IF( [PACKAGE_VERSION="${V}"], [AS_CASE( [${PACKAGE_VERSION}], - [hg|*+hg], - [rev_id="$( hg log -r . --template '{branch}-{node|short}\n' \ - 2>/dev/null \ - || true )" + [git|*+git], + [rev_id="$( git describe --tags 2>/dev/null )" PACKAGE_VERSION="${PACKAGE_VERSION}+${rev_id:-unknown-$( date +%Y%m%d.%H%M%S )}" ])]) # Arrange to have no / in the directory name, no need to create an -- cgit v1.2.3