More rubust regex to determine which version of postgresql that is
already installed. Reported by: Kostik Belousov
This commit is contained in:
@@ -61,7 +61,7 @@ post-build:
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif exists(${LOCALBASE}/bin/pg_config)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.else
|
||||
|
||||
Reference in New Issue
Block a user