Skip to content

Commit 67db493

Browse files
committed
* configure.ac: Fix detection of PGMAJORVERSION.
1 parent 257e2fa commit 67db493

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ Bugfixes in 5.0 version
44

55
* postgresql-setup --upgrade now works with "umask & 0004 != 0"
66

7-
* fixed semantics of 'redhat_sockets_hack' configuration option
7+
* Fixed semantics of 'redhat_sockets_hack' configuration option.
88

99
* The RPM macros file is installed automatically, it provides now
1010
%postgresql_major, %pgtests_init and %pgtests_start macros.
1111

12+
* Fixed automatic detection of $PGMAJORVERSION.
13+
1214
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1315

1416
New in 4.0 version:

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ if test -z "$PGVERSION" -a -z "$PGMAJORVERSION"; then
9898
PGVERSION=${raw_version##* }
9999
AC_MSG_RESULT($PGVERSION)
100100

101-
PGMAJORVERSION=`echo $PGVERSION | sed 's/\.[0-9]\+$//'`
101+
PGMAJORVERSION=`echo $PGVERSION | sed 's/\.[[0-9]]\+$//'`
102102
fi
103103

104104
AX_COMPARE_VERSION([9.4], [le], [$PGVERSION],

0 commit comments

Comments
 (0)