Skip to content
Myr

Fix scripts/version: use git describe --tags ...

Before adoption: this commit came in with the history the project adopted, so no landing records it.

After tagging as 1.4 scripts/version was still producing jq-1.3-....

authored by Nicolas Williams · committed by Nicolas Williams · parent 46436bd · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:scripts/version+1 added-1 removed
1#!/bin/sh2set -e3cd `dirname "$0"`4git rev-parse --verify -q jq-1.0 > /dev/null 2>&15git describe --always --match 'jq-*' --dirty | sed 's/^jq-//'5git describe --tags --match 'jq-*' --dirty | sed 's/^jq-//'