]> granicus.if.org Git - postgresql/commitdiff
Fix PG_VERSION_NUM awk -F parameter.
authorBruce Momjian <bruce@momjian.us>
Tue, 28 Feb 2006 21:59:19 +0000 (21:59 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 28 Feb 2006 21:59:19 +0000 (21:59 +0000)
configure
configure.in

index 2b9f6690454dff8b9fb6f02dd4b1545fa91d4966..a12e467ae8d40da37cdac92218710567366c5cb1 100755 (executable)
--- a/configure
+++ b/configure
@@ -4744,7 +4744,7 @@ fi
 
 # Supply a numeric version string for use by 3rd party add-ons
 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
-$AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
+$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
 
 cat >>confdefs.h <<_ACEOF
 #define PG_VERSION_NUM $PG_VERSION_NUM
index 6350b1af6fbe01bf3f4ea325fdf2dbffdd0fab56..b22119f333b994ae8e58b14a92c5d94dfd85f031 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.451 2006/02/28 16:41:21 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.452 2006/02/28 21:59:19 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -587,7 +587,7 @@ fi
 
 # Supply a numeric version string for use by 3rd party add-ons
 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
-$AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
+$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
 AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
 
 ##