mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
Fix for os version handling.
This commit is contained in:
parent
b3d8beaa1a
commit
1ebc1280e8
6
src/configure
vendored
6
src/configure
vendored
@ -642,11 +642,11 @@ starts 'checking host system type...'
|
|||||||
EOT
|
EOT
|
||||||
TEMPLATE=generic
|
TEMPLATE=generic
|
||||||
GUESS=`grep "$host_os" template/.similar 2>/dev/null`
|
GUESS=`grep "$host_os" template/.similar 2>/dev/null`
|
||||||
if test $GUESS
|
if test ! "$GUESS"
|
||||||
then host_os_no_ver=`grep "$host_os" | sed 's/0-9.*$//'`
|
then host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'`
|
||||||
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
|
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
|
||||||
fi
|
fi
|
||||||
if test $GUESS
|
if test "$GUESS"
|
||||||
then
|
then
|
||||||
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
|
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
|
||||||
fi
|
fi
|
||||||
|
@ -80,11 +80,11 @@ starts 'checking host system type...'
|
|||||||
EOT
|
EOT
|
||||||
TEMPLATE=generic
|
TEMPLATE=generic
|
||||||
GUESS=`grep "$host_os" template/.similar 2>/dev/null`
|
GUESS=`grep "$host_os" template/.similar 2>/dev/null`
|
||||||
if test $GUESS
|
if test ! "$GUESS"
|
||||||
then host_os_no_ver=`grep "$host_os" | sed 's/[0-9.]*$//'`
|
then host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'`
|
||||||
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
|
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
|
||||||
fi
|
fi
|
||||||
if test $GUESS
|
if test "$GUESS"
|
||||||
then
|
then
|
||||||
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
|
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user