summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-01-01 08:59:17 +0100
committerDavid Tardon <dtardon@redhat.com>2013-01-01 09:02:07 +0100
commit00234d0578419c3d0847dd89554186146121f60e (patch)
treea4e8b5ecd4bcaf66b37f15b9bbba59a3a7b90cc1 /configure.ac
parentcheck for python.exe too (diff)
downloadcore-00234d0578419c3d0847dd89554186146121f60e.tar.gz
core-00234d0578419c3d0847dd89554186146121f60e.zip
replace bashisms
Change-Id: I4d7709effb8cb98827e6bdd62e422186d61ed2a0
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index eb0dd9ff994b..68723f4a72be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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