From de361456d526e9b12115c4f049364a50397603b6 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 19 Aug 2019 11:41:57 +0930 Subject: [PATCH] Makefile: detect version properly from dirname. Our reproducibile builds use the dirname to get version, but they have a v in them (the tools/repro-build.sh script gets this right, so I copied that). Signed-off-by: Rusty Russell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dbbd8d04e..dc2d5ab4c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #! /usr/bin/make # Extract version from git, or if we're from a zipfile, use dirname -VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's,.*/lightning-\([0-9.rc]*\)$$,\1,p') +VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's,.*/clightning-\(v[0-9.rc]*\)$$,\1,p') ifeq ($(VERSION),) $(error "ERROR: git is required for generating version information")