mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
268cb4b373
commit
74d3531523
|
|
@ -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>
|
2015-02-05 Ilya Verbin <ilya.verbin@intel.com>
|
||||||
|
|
||||||
* gcc_update (files_and_dependencies): Add rules for liboffloadmic and
|
* 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/'`
|
PYTHON_VER=`echo "$0" | sed 's/sh$/py/'`
|
||||||
if test "$PYTHON_VER" != "$0" &&
|
if test "$PYTHON_VER" != "$0" &&
|
||||||
test -f "$PYTHON_VER" &&
|
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
|
> /dev/null 2> /dev/null; then
|
||||||
exec python $PYTHON_VER "$@"
|
exec python $PYTHON_VER "$@"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue