blob: 257f1244858f6fae5574db9052217a2919db6753 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-scripts_gversion,v 1.2 2020/03/18 13:49:30 gdt Exp $
Remediate bashisms.
Sent upstream by email 20200317.
--- scripts/gversion.orig 2019-08-25 15:14:28.000000000 +0000
+++ scripts/gversion
@@ -43,10 +43,10 @@ gutenprint_release=gutenprint-5.3
if [ -z "$3" ] ; then
if [ -d "$root/.git" ] ; then
tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_version//./_}*" 2>/dev/null)
- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null)
- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null)
- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null)
- [[ -z $tag ]] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null)
+ [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null)
+ [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null)
+ [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null)
+ [ -z "$tag" ] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null)
echo $tag | sed 's/^[^0-9]*-//' > "$root/git-version-stamp"
fi
|