diff options
author | bapt <bapt@FreeBSD.org> | 2014-05-27 18:55:39 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-05-27 18:55:39 +0800 |
commit | f7ca21cead884a627c97c1dde14e940513017352 (patch) | |
tree | bb8c0febbd6a31349df9c62f07053d1cce476d8b /Mk/Uses/pgsql.mk | |
parent | 118ea2f212fa25ffcb25aedf228fe40161c8ded0 (diff) | |
download | freebsd-ports-gnome-f7ca21cead884a627c97c1dde14e940513017352.tar.gz freebsd-ports-gnome-f7ca21cead884a627c97c1dde14e940513017352.tar.zst freebsd-ports-gnome-f7ca21cead884a627c97c1dde14e940513017352.zip |
Fix version comparison
Diffstat (limited to 'Mk/Uses/pgsql.mk')
-rw-r--r-- | Mk/Uses/pgsql.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/Uses/pgsql.mk b/Mk/Uses/pgsql.mk index 4a69001b7614..95226225e1a3 100644 --- a/Mk/Uses/pgsql.mk +++ b/Mk/Uses/pgsql.mk @@ -64,13 +64,13 @@ _PGSQL_VER!= ${PG_CONFIG} --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9] . if defined(pgsql_ARGS) . if ${pgsql_ARGS:M*+} . for version in ${VALID_PGSQL_VER} -. if ${pgsql_ARGS:S/+//} <= ${version} +. if ${pgsql_ARGS:S/+//} <= ${version:S/.//} _WANT_PGSQL_VER+=${version} . endif . endfor . elif ${pgsql_ARGS:M*-} . for version in ${VALID_PGSQL_VER} -. if ${pgsql_ARGS:S/-//} >= ${version} +. if ${pgsql_ARGS:S/-//} >= ${version:S/.//} _WANT_PGSQL_VER+=${version} . endif . endfor |