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
This commit is contained in:
Bernd Edlinger 2015-03-06 18:35:15 +00:00 committed by Bernd Edlinger
parent 268cb4b373
commit 74d3531523
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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