Make configure.ac work for shallow clones
This commit is contained in:
1 parent
f7bf9a8e96
commit
6878123202
1 file changed
+4
-1
+4
-1
@@ -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])
|
||||||
|
|||||||
Reference in new issue
Block a user