From: Marko Kreen Date: Mon, 7 May 2012 11:02:53 +0000 (+0300) Subject: PGVER: add quoting X-Git-Tag: plproxy_2_4~1 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=fc44d581aade08230890c0f53f770b3c21292425;p=plproxy.git PGVER: add quoting This avoids breakage if pg_config is not found and PGVER stays empty. --- diff --git a/Makefile b/Makefile index 882bc70..a98f53b 100644 --- a/Makefile +++ b/Makefile @@ -50,8 +50,8 @@ EXTMISC = sql/plproxy--unpackaged--2.3.0.sql # PostgreSQL version PGVER = $(shell $(PG_CONFIG) --version | sed 's/PostgreSQL //') -SQLMED = $(shell test $(PGVER) "<" "8.4" && echo "false" || echo "true") -PG91 = $(shell test $(PGVER) "<" "9.1" && echo "false" || echo "true") +SQLMED = $(shell test "$(PGVER)" "<" "8.4" && echo "false" || echo "true") +PG91 = $(shell test "$(PGVER)" "<" "9.1" && echo "false" || echo "true") # SQL/MED available, add foreign data wrapper and regression tests ifeq ($(SQLMED), true)