1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
From: =?utf-8?b?IkNoYW5nWmh1byBDaGVuICjpmbPmmIzlgKwpIg==?=
<czchen@debian.org>
Date: Sun, 4 Nov 2018 21:34:10 +0800
Subject: Set release version manually.
jq sets the build version by parsing the git branch. There is no git branch during
package building however. This patch sets the version manually. The version can be
looked up using `git describe --tags --match 'upstream*' | sed 's/^upstream\///'`.
Bug: https://github.com/stedolan/jq/issues/434
Last-Update: 2014-06-21
---
scripts/version | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/scripts/version b/scripts/version
index ba59e6b..74faa10 100755
--- a/scripts/version
+++ b/scripts/version
@@ -1,13 +1,2 @@
#!/bin/sh
-set -eu
-
-cd "$(dirname "$0")/../"
-test -d .git || exit 1
-
-if git describe --tags --match 'jq-*' >/dev/null 2>&1; then
- git describe --tags --match 'jq-*' --dirty | sed 's/^jq-//'
-else
- branch=$(git rev-parse --abbrev-ref HEAD)
- commit=$(git describe --always --dirty)
- echo "${branch}-${commit}"
-fi
+echo '1.7'
|