From: Willy Tarreau Date: Mon, 16 Dec 2013 00:34:39 +0000 (+0100) Subject: BUILD: fix SUBVERS extraction in the Makefile X-Git-Tag: v1.5-dev20~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6173bbee085f1c5c7288056c3e34937c62301e25;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/Makefile b/Makefile index 01e6959fbf..0c366500fb 100644 --- a/Makefile +++ b/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