replace bashisms

Change-Id: I4d7709effb8cb98827e6bdd62e422186d61ed2a0
This commit is contained in:
David Tardon
2013-01-01 08:59:17 +01:00
parent 55563832c4
commit 00234d0578

View File

@@ -7546,8 +7546,8 @@ if test $enable_python = system; then
# 2.6.2 currently on OpenSUSE 12.1?
# rpm -q mingw32-python => mingw32-python-2.6.2-17.17.noarch
PYTHON_VERSION=$python_version.2
PYTHON_VERSION_MAJOR=${python_version%.*}
PYTHON_VERSION_MINOR=${python_version#*.}
PYTHON_VERSION_MAJOR=`echo $python_version | cut -d . -f 1`
PYTHON_VERSION_MINOR=`echo $python_version | cut -d . -f 2`
break
fi
done