Commit 74d35315 by Bernd Edlinger Committed by Bernd Edlinger

dg-extract-results.sh: Check that the necessary python modules exist.

2015-03-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * dg-extract-results.sh: Check that the necessary python modules exist.

From-SVN: r221247
parent 268cb4b3
2015-03-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
* dg-extract-results.sh: Check that the necessary python modules exist.
2015-02-05 Ilya Verbin <ilya.verbin@intel.com>
* gcc_update (files_and_dependencies): Add rules for liboffloadmic and
......
......@@ -32,7 +32,7 @@ PROGNAME=dg-extract-results.sh
PYTHON_VER=`echo "$0" | sed 's/sh$/py/'`
if test "$PYTHON_VER" != "$0" &&
test -f "$PYTHON_VER" &&
python -c 'import sys; sys.exit (0 if sys.version_info >= (2, 6) else 1)' \
python -c 'import sys, getopt, re, io, datetime, operator; sys.exit (0 if sys.version_info >= (2, 6) else 1)' \
> /dev/null 2> /dev/null; then
exec python $PYTHON_VER "$@"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment