diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-21 21:59:52 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-21 21:59:52 +0800 |
commit | 1e75381de312b1347afcbfc30a20cac6c2ce4738 (patch) | |
tree | 13003d573bfcf169ee669a9a536fa358728622e3 /configure.ac | |
parent | 7b1f12870be5307495ac32a8e69dc76d880fbc24 (diff) | |
download | dropbear-1e75381de312b1347afcbfc30a20cac6c2ce4738.tar.gz |
print hg revid
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9f92328..6a61d82 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,12 @@ AC_PREREQ(2.59) 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 |