Content-Length: 290037 | pFad | http://github.com/postgrespro/postgres/commit/c979afb7e0dc1fbe52e4832cdba04b44e704d1af

48 Fix PG_VERSION_NUM awk -F parameter. · postgrespro/postgres@c979afb · GitHub
Skip to content

Commit c979afb

Browse files
committed
Fix PG_VERSION_NUM awk -F parameter.
1 parent 2b8afe6 commit c979afb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4744,7 +4744,7 @@ fi
47444744

47454745
# Supply a numeric version string for use by 3rd party add-ons
47464746
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
4747-
$AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
4747+
$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
47484748

47494749
cat >>confdefs.h <<_ACEOF
47504750
#define PG_VERSION_NUM $PG_VERSION_NUM

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.451 2006/02/28 16:41:21 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.452 2006/02/28 21:59:19 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -587,7 +587,7 @@ fi
587587

588588
# Supply a numeric version string for use by 3rd party add-ons
589589
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
590-
$AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
590+
$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
591591
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
592592

593593
##

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c979afb7e0dc1fbe52e4832cdba04b44e704d1af

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy