]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql-version.patch
- fix version define
[packages/postgresql.git] / postgresql-version.patch
1 --- postgresql/configure.in.org 2006-12-07 00:01:51.133944250 +0100
2 +++ postgresql/configure.in     2006-12-07 00:02:19.567721250 +0100
3 @@ -632,9 +632,9 @@
4  
5  # Supply a numeric version string for use by 3rd party add-ons
6  # awk -F is a regex on some platforms, and not on others, so make "." a tab
7 -PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
8 +PG_VERSION_NUM=$(echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
9  tr '.' '       ' |
10 -$AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
11 +$AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}')
12  AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
13  
14  ##
This page took 0.029645 seconds and 4 git commands to generate.