summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Mondelli <andrea.mondelli@ucf.edu>2019-01-10 10:12:41 -0500
committerAndrea Mondelli <Andrea.mondelli@ucf.edu>2019-01-11 17:41:02 +0000
commit3d54f6d42c303a2b17b1a882634444fc1319a9a1 (patch)
tree2e04a72a00fc32889698976e8b91d93798e532b2
parentf3a438e58d836ec283af6eef8bb34b57958303d6 (diff)
downloadgem5-3d54f6d42c303a2b17b1a882634444fc1319a9a1.tar.xz
misc: updated shabang for python script
The default python on MacOS doesn’t have an alias to python2. The official python version supported in gem5 is Python2.7. This patch updates the shabang according to the version required in gem5. Change-Id: I9533c0f7858b5b3cab0ef101be1ee5cd718105b0 Reviewed-on: https://gem5-review.googlesource.com/c/15375 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
-rwxr-xr-xext/mcpat/regression/regression.py2
-rw-r--r--ext/mcpat/regression/verify_output.py2
-rwxr-xr-xext/ply/example/classcalc/calc.py2
-rwxr-xr-xext/ply/example/newclasscalc/calc.py2
-rwxr-xr-xsrc/systemc/tests/verify.py2
-rwxr-xr-xsrc/unittest/genini.py2
-rwxr-xr-xtests/main.py2
-rw-r--r--tests/testing/__init__.py2
-rwxr-xr-xtests/testing/helpers.py2
-rw-r--r--tests/testing/results.py2
-rwxr-xr-xtests/testing/tests.py2
-rw-r--r--tests/testing/units.py2
-rwxr-xr-xtests/tests.py2
-rwxr-xr-xutil/batch/job.py2
-rwxr-xr-xutil/batch/send.py2
-rwxr-xr-xutil/checkpoint-tester.py2
-rwxr-xr-xutil/compile2
-rwxr-xr-xutil/cpt_upgrader.py2
-rwxr-xr-xutil/decode_inst_dep_trace.py2
-rwxr-xr-xutil/decode_inst_trace.py2
-rwxr-xr-xutil/decode_packet_trace.py2
-rwxr-xr-xutil/encode_inst_dep_trace.py2
-rwxr-xr-xutil/encode_packet_trace.py2
-rw-r--r--util/find_copyrights.py2
-rwxr-xr-xutil/gen_arm_fs_files.py2
-rwxr-xr-xutil/git-pre-commit.py2
-rwxr-xr-xutil/hgstyle.py2
-rwxr-xr-xutil/maint/list_changes.py2
-rwxr-xr-xutil/maint/show_changes_by_file.py2
-rwxr-xr-xutil/memtest-soak.py2
-rwxr-xr-xutil/minorview.py2
-rwxr-xr-xutil/o3-pipeview.py2
-rwxr-xr-xutil/oprofile-top.py2
-rwxr-xr-xutil/pbs/job.py2
-rwxr-xr-xutil/pbs/send.py2
-rwxr-xr-xutil/plot_dram/dram_lat_mem_rd_plot.py2
-rwxr-xr-xutil/plot_dram/dram_sweep_plot.py2
-rw-r--r--util/protolib.py2
-rwxr-xr-xutil/qdo2
-rwxr-xr-xutil/regress2
-rwxr-xr-xutil/slicc2
-rwxr-xr-xutil/stats/stats.py2
-rwxr-xr-xutil/streamline/m5stats2streamline.py2
-rwxr-xr-xutil/style.py2
-rw-r--r--util/style/__init__.py2
-rw-r--r--util/style/repo.py2
-rw-r--r--util/style/sort_includes.py2
-rw-r--r--util/style/style.py2
-rw-r--r--util/style/verifiers.py2
49 files changed, 49 insertions, 49 deletions
diff --git a/ext/mcpat/regression/regression.py b/ext/mcpat/regression/regression.py
index 0115a5625..ddfa81b99 100755
--- a/ext/mcpat/regression/regression.py
+++ b/ext/mcpat/regression/regression.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
# All rights reserved.
diff --git a/ext/mcpat/regression/verify_output.py b/ext/mcpat/regression/verify_output.py
index aaa75929f..83e3e8960 100644
--- a/ext/mcpat/regression/verify_output.py
+++ b/ext/mcpat/regression/verify_output.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
# All rights reserved.
diff --git a/ext/ply/example/classcalc/calc.py b/ext/ply/example/classcalc/calc.py
index f3591977b..b0712fc45 100755
--- a/ext/ply/example/classcalc/calc.py
+++ b/ext/ply/example/classcalc/calc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# -----------------------------------------------------------------------------
# calc.py
diff --git a/ext/ply/example/newclasscalc/calc.py b/ext/ply/example/newclasscalc/calc.py
index 3461f243e..5a8db84fc 100755
--- a/ext/ply/example/newclasscalc/calc.py
+++ b/ext/ply/example/newclasscalc/calc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# -----------------------------------------------------------------------------
# calc.py
diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index def0fdc79..503c11d8b 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright 2018 Google, Inc.
#
diff --git a/src/unittest/genini.py b/src/unittest/genini.py
index 5a4f3454b..f10ad6874 100755
--- a/src/unittest/genini.py
+++ b/src/unittest/genini.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
#
diff --git a/tests/main.py b/tests/main.py
index c8dc9b961..509724ed7 100755
--- a/tests/main.py
+++ b/tests/main.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
'''
The main source for testlib. Ties together the default test runners and
loaders.
diff --git a/tests/testing/__init__.py b/tests/testing/__init__.py
index 1bc471108..4230079e6 100644
--- a/tests/testing/__init__.py
+++ b/tests/testing/__init__.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/tests/testing/helpers.py b/tests/testing/helpers.py
index 29c6bf5ea..70e6dfb01 100755
--- a/tests/testing/helpers.py
+++ b/tests/testing/helpers.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/tests/testing/results.py b/tests/testing/results.py
index 4e0707860..8cb3811df 100644
--- a/tests/testing/results.py
+++ b/tests/testing/results.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/tests/testing/tests.py b/tests/testing/tests.py
index 123d3b1a4..00f3e5a12 100755
--- a/tests/testing/tests.py
+++ b/tests/testing/tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016-2017 ARM Limited
# All rights reserved
diff --git a/tests/testing/units.py b/tests/testing/units.py
index 220cf61f6..90918aea5 100644
--- a/tests/testing/units.py
+++ b/tests/testing/units.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/tests/tests.py b/tests/tests.py
index a57a97228..9967669e0 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/util/batch/job.py b/util/batch/job.py
index 471b88251..02e1fdcc7 100755
--- a/util/batch/job.py
+++ b/util/batch/job.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2006 The Regents of The University of Michigan
# All rights reserved.
#
diff --git a/util/batch/send.py b/util/batch/send.py
index 44a4f2879..7707a0e32 100755
--- a/util/batch/send.py
+++ b/util/batch/send.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2006 The Regents of The University of Michigan
# All rights reserved.
#
diff --git a/util/checkpoint-tester.py b/util/checkpoint-tester.py
index bec4709fc..e7bd45e24 100755
--- a/util/checkpoint-tester.py
+++ b/util/checkpoint-tester.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2010 Advanced Micro Devices, Inc.
# All rights reserved.
diff --git a/util/compile b/util/compile
index f3040f794..a069f5567 100755
--- a/util/compile
+++ b/util/compile
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2006 The Regents of The University of Michigan
# All rights reserved.
#
diff --git a/util/cpt_upgrader.py b/util/cpt_upgrader.py
index 59a468989..29a34131f 100755
--- a/util/cpt_upgrader.py
+++ b/util/cpt_upgrader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2012-2013,2015-2016 ARM Limited
# All rights reserved
diff --git a/util/decode_inst_dep_trace.py b/util/decode_inst_dep_trace.py
index 956a16133..5e8900187 100755
--- a/util/decode_inst_dep_trace.py
+++ b/util/decode_inst_dep_trace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013 - 2015 ARM Limited
# All rights reserved
diff --git a/util/decode_inst_trace.py b/util/decode_inst_trace.py
index ff5c73386..d8299b05f 100755
--- a/util/decode_inst_trace.py
+++ b/util/decode_inst_trace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013-2014 ARM Limited
# All rights reserved
diff --git a/util/decode_packet_trace.py b/util/decode_packet_trace.py
index 9ef9b5fa9..6a4b38679 100755
--- a/util/decode_packet_trace.py
+++ b/util/decode_packet_trace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013-2014 ARM Limited
# All rights reserved
diff --git a/util/encode_inst_dep_trace.py b/util/encode_inst_dep_trace.py
index d8d5ba143..ba8ca9183 100755
--- a/util/encode_inst_dep_trace.py
+++ b/util/encode_inst_dep_trace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2015 ARM Limited
# All rights reserved
diff --git a/util/encode_packet_trace.py b/util/encode_packet_trace.py
index c4d461664..048071459 100755
--- a/util/encode_packet_trace.py
+++ b/util/encode_packet_trace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013-2014 ARM Limited
# All rights reserved
diff --git a/util/find_copyrights.py b/util/find_copyrights.py
index 8a12bc3b1..39ac19164 100644
--- a/util/find_copyrights.py
+++ b/util/find_copyrights.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
import os
import re
diff --git a/util/gen_arm_fs_files.py b/util/gen_arm_fs_files.py
index bb8449a8d..45c36ee2e 100755
--- a/util/gen_arm_fs_files.py
+++ b/util/gen_arm_fs_files.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2017-2018 Metempsy Technology Consulting
# All rights reserved.
diff --git a/util/git-pre-commit.py b/util/git-pre-commit.py
index 1b93069da..db515f5ba 100755
--- a/util/git-pre-commit.py
+++ b/util/git-pre-commit.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/util/hgstyle.py b/util/hgstyle.py
index da0cdeb90..9e199b795 100755
--- a/util/hgstyle.py
+++ b/util/hgstyle.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2014 ARM Limited
# All rights reserved
#
diff --git a/util/maint/list_changes.py b/util/maint/list_changes.py
index 3d9be8d6b..c27aab1fb 100755
--- a/util/maint/list_changes.py
+++ b/util/maint/list_changes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2017-2018 Arm Limited
# All rights reserved
diff --git a/util/maint/show_changes_by_file.py b/util/maint/show_changes_by_file.py
index f4f9a9630..cc863ceee 100755
--- a/util/maint/show_changes_by_file.py
+++ b/util/maint/show_changes_by_file.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2018 Advanced Micro Devices, Inc.
# All rights reserved.
diff --git a/util/memtest-soak.py b/util/memtest-soak.py
index b61d1c5b7..3913b0d60 100755
--- a/util/memtest-soak.py
+++ b/util/memtest-soak.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2015 ARM Limited
# All rights reserved
diff --git a/util/minorview.py b/util/minorview.py
index 39c633179..87f9c7285 100755
--- a/util/minorview.py
+++ b/util/minorview.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2013 ARM Limited
# All rights reserved
diff --git a/util/o3-pipeview.py b/util/o3-pipeview.py
index 08fd8d334..fedafd449 100755
--- a/util/o3-pipeview.py
+++ b/util/o3-pipeview.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2011 ARM Limited
# All rights reserved
diff --git a/util/oprofile-top.py b/util/oprofile-top.py
index f64440646..b678dd60d 100755
--- a/util/oprofile-top.py
+++ b/util/oprofile-top.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
diff --git a/util/pbs/job.py b/util/pbs/job.py
index 4c400310c..8247218a5 100755
--- a/util/pbs/job.py
+++ b/util/pbs/job.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
#
diff --git a/util/pbs/send.py b/util/pbs/send.py
index 62ab2e5b9..d5136502b 100755
--- a/util/pbs/send.py
+++ b/util/pbs/send.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
#
diff --git a/util/plot_dram/dram_lat_mem_rd_plot.py b/util/plot_dram/dram_lat_mem_rd_plot.py
index 422b14049..bdfc3b4d7 100755
--- a/util/plot_dram/dram_lat_mem_rd_plot.py
+++ b/util/plot_dram/dram_lat_mem_rd_plot.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2015 ARM Limited
# All rights reserved
diff --git a/util/plot_dram/dram_sweep_plot.py b/util/plot_dram/dram_sweep_plot.py
index 5eb18b95a..3cef209ec 100755
--- a/util/plot_dram/dram_sweep_plot.py
+++ b/util/plot_dram/dram_sweep_plot.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2014 ARM Limited
# All rights reserved
diff --git a/util/protolib.py b/util/protolib.py
index 1e442f1d9..501048369 100644
--- a/util/protolib.py
+++ b/util/protolib.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013 ARM Limited
# All rights reserved
diff --git a/util/qdo b/util/qdo
index 9ec9b8f52..8008a40c4 100755
--- a/util/qdo
+++ b/util/qdo
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2004-2005, 2007 The Regents of The University of Michigan
# All rights reserved.
diff --git a/util/regress b/util/regress
index da71e6575..873d9cc85 100755
--- a/util/regress
+++ b/util/regress
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2005-2007 The Regents of The University of Michigan
# All rights reserved.
#
diff --git a/util/slicc b/util/slicc
index b4ccec0d8..e8408f1ef 100755
--- a/util/slicc
+++ b/util/slicc
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2009 The Hewlett-Packard Development Company
# All rights reserved.
#
diff --git a/util/stats/stats.py b/util/stats/stats.py
index 209108c77..6650f0ed8 100755
--- a/util/stats/stats.py
+++ b/util/stats/stats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2003-2004 The Regents of The University of Michigan
# All rights reserved.
diff --git a/util/streamline/m5stats2streamline.py b/util/streamline/m5stats2streamline.py
index 816d042dc..98aa1a861 100755
--- a/util/streamline/m5stats2streamline.py
+++ b/util/streamline/m5stats2streamline.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2012, 2014 ARM Limited
# All rights reserved
diff --git a/util/style.py b/util/style.py
index 1dd7af34e..44e53fd1f 100755
--- a/util/style.py
+++ b/util/style.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/util/style/__init__.py b/util/style/__init__.py
index 1bc471108..4230079e6 100644
--- a/util/style/__init__.py
+++ b/util/style/__init__.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/util/style/repo.py b/util/style/repo.py
index 7e3b444c6..d34440596 100644
--- a/util/style/repo.py
+++ b/util/style/repo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
diff --git a/util/style/sort_includes.py b/util/style/sort_includes.py
index 39b3a13e0..18389253f 100644
--- a/util/style/sort_includes.py
+++ b/util/style/sort_includes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2014-2015 ARM Limited
# All rights reserved
diff --git a/util/style/style.py b/util/style/style.py
index 0f58590f5..1e35a7b9d 100644
--- a/util/style/style.py
+++ b/util/style/style.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2014, 2016 ARM Limited
# All rights reserved
#
diff --git a/util/style/verifiers.py b/util/style/verifiers.py
index 89247dc4f..33b127a79 100644
--- a/util/style/verifiers.py
+++ b/util/style/verifiers.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2014, 2016 ARM Limited
# All rights reserved