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:
parent
0af231dff5
commit
e02811689a
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user