summaryrefslogtreecommitdiff
path: root/contrib/dg-extract-results.sh
diff options
context:
space:
mode:
authoredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-06 18:35:15 +0000
committeredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-06 18:35:15 +0000
commit44fa111fe93e6f5ef560d7e57dc3547d376ffe9b (patch)
treef6562a58af1139c9850fec1a748c709246afed28 /contrib/dg-extract-results.sh
parent4a7046f8b81794321abe9c9117519ee9a0ae7d14 (diff)
2015-03-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
* dg-extract-results.sh: Check that the necessary python modules exist. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/dg-extract-results.sh')
-rwxr-xr-xcontrib/dg-extract-results.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/dg-extract-results.sh b/contrib/dg-extract-results.sh
index 0ddf25b60a63..5a8e67ea2fa7 100755
--- a/contrib/dg-extract-results.sh
+++ b/contrib/dg-extract-results.sh
@@ -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