mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 13:17:16 +00:00
BUILD: fix SUBVERS extraction in the Makefile
We'd rather skip any line containing "$Format" and not just those beginning with it because SUBVERS starts with a dash and caused a bad format to be reported.
This commit is contained in:
parent
59e3ff4549
commit
6173bbee08
4
Makefile
4
Makefile
@ -356,10 +356,10 @@ ifeq ($(VERSION),)
|
||||
VERSION := $(shell cat VERSION 2>/dev/null || touch VERSION)
|
||||
endif
|
||||
ifeq ($(SUBVERS),)
|
||||
SUBVERS := $(shell (grep -v '^\$$' SUBVERS 2>/dev/null || touch SUBVERS) | head -n 1)
|
||||
SUBVERS := $(shell (grep -v '\$$Format' SUBVERS 2>/dev/null || touch SUBVERS) | head -n 1)
|
||||
endif
|
||||
ifeq ($(VERDATE),)
|
||||
VERDATE := $(shell (grep -v '^\$$' VERDATE 2>/dev/null || touch VERDATE) | head -n 1 | cut -f1 -d' ' | tr '-' '/')
|
||||
VERDATE := $(shell (grep -v '^$$Format' VERDATE 2>/dev/null || touch VERDATE) | head -n 1 | cut -f1 -d' ' | tr '-' '/')
|
||||
endif
|
||||
|
||||
#### Build options
|
||||
|
Loading…
Reference in New Issue
Block a user