Mercurial > dropbear
changeset 1564:86e4995bbedf
more portable for `which hg` test
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 28 Feb 2018 23:42:57 +0800 |
parents | 1cbb7b3d6703 |
children | 2fd52c383163 |
files | configure.ac |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Wed Feb 28 22:12:05 2018 +0800 +++ b/configure.ac Wed Feb 28 23:42:57 2018 +0800 @@ -10,7 +10,7 @@ AC_CONFIG_SRCDIR(buffer.c) # Record which revision is being built -if which -s hg && test -d "$srcdir/.hg"; then +if test -s "`which hg`" && test -d "$srcdir/.hg"; then hgrev=`hg id -i -R "$srcdir"` AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) fi