Skip to content

Commit 9d4ba42

Browse files
committed
repro: Allow dashes in the version number
1 parent c93a0a5 commit 9d4ba42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/make
22

33
# Extract version from git, or if we're from a zipfile, use dirname
4-
VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc]*\)$$|\1|gp')
4+
VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc\-]*\)$$|\1|gp')
55

66
ifeq ($(VERSION),)
77
$(error "ERROR: git is required for generating version information")

tools/repro-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ else
5151
fi
5252

5353
PLATFORM="$OS"-"$VER"
54-
VERSION=$(git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's,.*/clightning-\(v[0-9.rc]*\)$,\1,p')
54+
VERSION=$(git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's,.*/clightning-\(v[0-9.rc\-]*\)$,\1,p')
5555

5656
# eg. ## [0.6.3] - 2019-01-09: "The Smallblock Conspiracy"
5757
# Skip 'v' here in $VERSION

0 commit comments

Comments
 (0)