version
This file
Path
scripts/version
13 lines · 313 bytes
Last changed by
Move closer to the standard autotools idiom. (#3187)Dag-Erling Smørgravbefore adoptiond8463c2
History of this fileTake it
The walk stopped after 200 commits: lines older than 7298972 point at it.
Makefile.am: don't use -lshlwapi to build jq on WIN32Emanuele Torrebefore adoption7298972
lines 1–4why, one step back1#!/bin/sh2set -eu34cd "$(dirname "$0")/../"Move closer to the standard autotools idiom. (#3187)Dag-Erling Smørgravbefore adoptiond8463c2
line 5why, one step back5test -e .git || exit 1Makefile.am: don't use -lshlwapi to build jq on WIN32Emanuele Torrebefore adoption7298972
lines 6–13why, one step back67if git describe --tags --match 'jq-*' >/dev/null 2>&1; then8 git describe --tags --match 'jq-*' --dirty | sed 's/^jq-//'9else10 branch=$(git rev-parse --abbrev-ref HEAD)11 commit=$(git describe --always --dirty)12 echo "${branch}-${commit}"13fi