Fixed non-portable use of sed to parse the version from META

Patch from Josh, with the help of RhodiumToad.
This commit is contained in:
Daniele Varrazzo 2012-11-16 10:36:16 +00:00
parent 0af231dff5
commit e02811689a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)