From e02811689a90545f9777cf7124d1151e7411faaf Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 16 Nov 2012 10:36:16 +0000 Subject: [PATCH] Fixed non-portable use of sed to parse the version from META Patch from Josh, with the help of RhodiumToad. --- bin/Makefile | 2 +- lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/Makefile b/bin/Makefile index 78fc2ff..3e9342b 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -14,7 +14,7 @@ EXTRA_CLEAN = sql/init-$(MAJORVERSION).sql sql/init.sql # The version number of the program. It should be the same of the library. REPACK_VERSION = $(shell grep '"version":' ../META.json | head -1 \ - | sed -e 's/\s*"version":\s*"\(.*\)",/\1/') + | sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/') PG_CPPFLAGS = -I$(libpq_srcdir) -DREPACK_VERSION=$(REPACK_VERSION) diff --git a/lib/Makefile b/lib/Makefile index 045cc0a..a6fc414 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -15,7 +15,7 @@ OBJS = repack.o pgut/pgut-be.o pgut/pgut-spi.o # The version number of the program. It should be the same of the library. REPACK_VERSION = $(shell grep '"version":' ../META.json | head -1 \ - | sed -e 's/\s*"version":\s*"\(.*\)",/\1/') + | sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/') PG_CPPFLAGS = -DREPACK_VERSION=$(REPACK_VERSION)