exit after first found version
authorMichael Wallner <mike@php.net>
Tue, 4 Apr 2017 09:48:21 +0000 (11:48 +0200)
committerMichael Wallner <mike@php.net>
Tue, 4 Apr 2017 09:48:21 +0000 (11:48 +0200)
Makefile

index 28df30942b3fff34ccf63b1a766a8e8d376c894a..93caffb1843b2388d82a819506546c1ffb0427bd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ PECL_DIR := $(if $(filter ext ext%, $(MAKECMDGOALS)), $(curdir), $(srcdir)/pecl-
 #PHP_VERSION_MAJOR = $(firstword $(subst ., ,$(PHP)))
 
 PHP_RELEASES = $(srcdir)/releases.tsv
-PHP_VERSION ?= $(shell test -e $(PHP_RELEASES) && cat $(PHP_RELEASES) | awk -F "\t" '/^$(PHP)\t/{print $$2}')
+PHP_VERSION ?= $(shell test -e $(PHP_RELEASES) && cat $(PHP_RELEASES) | awk -F "\t" '/^$(PHP)\t/{print $$2; exit}')
 
 CPPCHECK_STD ?= c89
 CPPCHECK_ENABLE ?= portability,style