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)