Make configure.ac work for shallow clones

This commit is contained in:
Nicolas Williams committed 2017-03-04 22:57:35 -06:00
1 parent f7bf9a8e96
commit 6878123202
1 file changed
+4 -1
+4 -1
View File
@@ -1,4 +1,7 @@
m4_define([jq_version], m4_esyscmd_s([git describe --tags --dirty --match 'jq-*'|sed 's/^jq-//'])) m4_define([jq_version],
m4_esyscmd_s([(git rev-parse --verify -q jq-1.0 > /dev/null &&
(git describe --tags --dirty --match 'jq-*'|sed 's/^jq-//')) ||
echo `git rev-parse --abbrev-ref HEAD`-`git describe --always --dirty`])))
AC_INIT([jq], [jq_version], [https://github.com/stedolan/jq/issues], AC_INIT([jq], [jq_version], [https://github.com/stedolan/jq/issues],
[jq], [https://stedolan.github.io/jq]) [jq], [https://stedolan.github.io/jq])