Skip to content

Commit e028116

Browse files
committed
Fixed non-portable use of sed to parse the version from META
Patch from Josh, with the help of RhodiumToad.
1 parent 0af231d commit e028116

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ EXTRA_CLEAN = sql/init-$(MAJORVERSION).sql sql/init.sql
1414

1515
# The version number of the program. It should be the same of the library.
1616
REPACK_VERSION = $(shell grep '"version":' ../META.json | head -1 \
17-
| sed -e 's/\s*"version":\s*"\(.*\)",/\1/')
17+
| sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/')
1818

1919
PG_CPPFLAGS = -I$(libpq_srcdir) -DREPACK_VERSION=$(REPACK_VERSION)
2020

lib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ OBJS = repack.o pgut/pgut-be.o pgut/pgut-spi.o
1515

1616
# The version number of the program. It should be the same of the library.
1717
REPACK_VERSION = $(shell grep '"version":' ../META.json | head -1 \
18-
| sed -e 's/\s*"version":\s*"\(.*\)",/\1/')
18+
| sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/')
1919

2020
PG_CPPFLAGS = -DREPACK_VERSION=$(REPACK_VERSION)
2121

0 commit comments

Comments
 (0)