mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Avoid portability problem introduced in 0a42a2e9c
.
Apparently not all shells handle nested quotes quite the same. But we don't need the inner double quotes in this case, so just drop them. Discussion: https://postgr.es/m/50ecb345-4dc5-1f7d-64ca-7018195fcc8d@2ndquadrant.com
This commit is contained in:
2
configure
vendored
2
configure
vendored
@ -18887,7 +18887,7 @@ _ACEOF
|
|||||||
|
|
||||||
# Supply a numeric version string for use by 3rd party add-ons
|
# Supply a numeric version string for use by 3rd party add-ons
|
||||||
# awk -F is a regex on some platforms, and not on others, so make "." a tab
|
# awk -F is a regex on some platforms, and not on others, so make "." a tab
|
||||||
PG_VERSION_NUM="`echo "$PG_MAJORVERSION $PG_MINORVERSION" |
|
PG_VERSION_NUM="`echo $PG_MAJORVERSION $PG_MINORVERSION |
|
||||||
$AWK '{printf "%d%04d", $1, $2}'`"
|
$AWK '{printf "%d%04d", $1, $2}'`"
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
@ -2322,7 +2322,7 @@ AC_DEFINE_UNQUOTED(PG_VERSION_STR,
|
|||||||
|
|
||||||
# Supply a numeric version string for use by 3rd party add-ons
|
# Supply a numeric version string for use by 3rd party add-ons
|
||||||
# awk -F is a regex on some platforms, and not on others, so make "." a tab
|
# awk -F is a regex on some platforms, and not on others, so make "." a tab
|
||||||
[PG_VERSION_NUM="`echo "$PG_MAJORVERSION $PG_MINORVERSION" |
|
[PG_VERSION_NUM="`echo $PG_MAJORVERSION $PG_MINORVERSION |
|
||||||
$AWK '{printf "%d%04d", $1, $2}'`"]
|
$AWK '{printf "%d%04d", $1, $2}'`"]
|
||||||
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
|
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
|
||||||
AC_SUBST(PG_VERSION_NUM)
|
AC_SUBST(PG_VERSION_NUM)
|
||||||
|
Reference in New Issue
Block a user