mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix PG_VERSION_NUM for different awk -F handling.
This commit is contained in:
4
configure
vendored
4
configure
vendored
@ -4743,8 +4743,10 @@ fi
|
||||
fi
|
||||
|
||||
# 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
|
||||
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
|
||||
$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
|
||||
tr '.' ' ' |
|
||||
$AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PG_VERSION_NUM $PG_VERSION_NUM
|
||||
|
Reference in New Issue
Block a user