Make jq --version report an actual git revision.

Closes #129.
This commit is contained in:
Stephen Dolan committed 2013-05-24 23:35:38 +01:00
1 parent cbd422d56e
commit f0b982795c
4 files changed
+14 -7

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
cd `dirname "$0"`
git rev-parse --verify -q jq-1.0 > /dev/null 2>&1
git describe --always --match 'jq-*' --dirty | sed 's/^jq-//'