Skip to content

Commit

Permalink
-egrep
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Aug 26, 2024
1 parent 9a769ad commit 7da5118
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PG_CONFIG = pg_config

ifeq ($(PG_BUILD_FROM_SOURCE),)
GREENPLUM = $(shell postgres --version | grep -i Greenplum >/dev/null && echo yes || echo no)
PG_MAJOR = $(shell $(PG_CONFIG) --version | cut -f 2 -d ' ' | egrep -o "[[:digit:]]+" | head -1)
PG_MAJOR = $(shell $(PG_CONFIG) --version | cut -f 2 -d ' ' | grep -E -o "[[:digit:]]+" | head -1)
ifeq ($(GREENPLUM),yes)
ARENADATA = $(shell gppkg --version | grep -i arenadata >/dev/null && echo yes || echo no)
MAIN = main
Expand Down Expand Up @@ -36,7 +36,7 @@ postgres.c:

MODULE_big = pg_task

PG9495 = $(shell $(PG_CONFIG) --version | egrep " 9\.4| 9\.5" > /dev/null && echo yes || echo no)
PG9495 = $(shell $(PG_CONFIG) --version | grep -E " 9\.4| 9\.5" > /dev/null && echo yes || echo no)
ifeq ($(PG9495),yes)
work.o: latch.h
latch.h:
Expand All @@ -52,7 +52,7 @@ OBJS = init.o conf.o work.o task.o spi.o dest.o
EXTRA_CLEAN = postgres.c
endif

PG94 = $(shell $(PG_CONFIG) --version | egrep " 8\.| 9\.0| 9\.1| 9\.2| 9\.3" > /dev/null && echo no || echo yes)
PG94 = $(shell $(PG_CONFIG) --version | grep -E " 8\.| 9\.0| 9\.1| 9\.2| 9\.3" > /dev/null && echo no || echo yes)
ifeq ($(PG94),no)
$(error Minimum version of PostgreSQL required is 9.4.0)
endif
Expand Down

0 comments on commit 7da5118

Please sign in to comment.