From 925be151720885abad8845c00613900c2bdb1bee Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sat, 7 Mar 2009 08:51:19 +0100 Subject: [PATCH] use the shorter '--help' instead of '--version' to check for gsed --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9ddb2db5..7d7f4376 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ TMP_DIR = $(PWD)/tmp-$(1) TOP_DIR := $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))) PATH := $(PREFIX)/bin:$(PATH) SHELL := bash -SED := $(shell gsed --version >/dev/null 2>&1 && echo g)sed +SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed SHORT_PKG_VERSION = \ $(word 1,$(subst ., ,$($(1)_VERSION))).$(word 2,$(subst ., ,$($(1)_VERSION)))