提交 1ebc1280 编写于 作者: B Bruce Momjian

Fix for os version handling.

上级 b3d8beaa
......@@ -642,11 +642,11 @@ starts 'checking host system type...'
EOT
TEMPLATE=generic
GUESS=`grep "$host_os" template/.similar 2>/dev/null`
if test $GUESS
then host_os_no_ver=`grep "$host_os" | sed 's/0-9.*$//'`
if test ! "$GUESS"
then host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'`
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
fi
if test $GUESS
if test "$GUESS"
then
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
fi
......
......@@ -80,11 +80,11 @@ starts 'checking host system type...'
EOT
TEMPLATE=generic
GUESS=`grep "$host_os" template/.similar 2>/dev/null`
if test $GUESS
then host_os_no_ver=`grep "$host_os" | sed 's/[0-9.]*$//'`
if test ! "$GUESS"
then host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'`
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
fi
if test $GUESS
if test "$GUESS"
then
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册