diff configure.ac @ 1530:63fa53d3b6c7 fuzz

print hg revid
author Matt Johnston <matt@ucc.asn.au>
date Wed, 21 Feb 2018 21:59:52 +0800
parents 5916af64acd4
children 61a793b6e471
line wrap: on
line diff
--- a/configure.ac	Wed Feb 21 21:49:24 2018 +0800
+++ b/configure.ac	Wed Feb 21 21:59:52 2018 +0800
@@ -9,6 +9,12 @@
 AC_INIT
 AC_CONFIG_SRCDIR(buffer.c)
 
+# Record which revision is being built
+if which -s hg && test -d "$srcdir/.hg"; then
+	hgrev=`hg id -i -R "$srcdir"`
+	echo "Source directory Mercurial base revision $hgrev"
+fi
+
 # Checks for programs.
 AC_PROG_CC