misc: updated shabang for python script
authorAndrea Mondelli <andrea.mondelli@ucf.edu>
Thu, 10 Jan 2019 15:12:41 +0000 (10:12 -0500)
committerAndrea Mondelli <Andrea.mondelli@ucf.edu>
Fri, 11 Jan 2019 17:41:02 +0000 (17:41 +0000)
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>
49 files changed:
ext/mcpat/regression/regression.py
ext/mcpat/regression/verify_output.py
ext/ply/example/classcalc/calc.py
ext/ply/example/newclasscalc/calc.py
src/systemc/tests/verify.py
src/unittest/genini.py
tests/main.py
tests/testing/__init__.py
tests/testing/helpers.py
tests/testing/results.py
tests/testing/tests.py
tests/testing/units.py
tests/tests.py
util/batch/job.py
util/batch/send.py
util/checkpoint-tester.py
util/compile
util/cpt_upgrader.py
util/decode_inst_dep_trace.py
util/decode_inst_trace.py
util/decode_packet_trace.py
util/encode_inst_dep_trace.py
util/encode_packet_trace.py
util/find_copyrights.py
util/gen_arm_fs_files.py
util/git-pre-commit.py
util/hgstyle.py
util/maint/list_changes.py
util/maint/show_changes_by_file.py
util/memtest-soak.py
util/minorview.py
util/o3-pipeview.py
util/oprofile-top.py
util/pbs/job.py
util/pbs/send.py
util/plot_dram/dram_lat_mem_rd_plot.py
util/plot_dram/dram_sweep_plot.py
util/protolib.py
util/qdo
util/regress
util/slicc
util/stats/stats.py
util/streamline/m5stats2streamline.py
util/style.py
util/style/__init__.py
util/style/repo.py
util/style/sort_includes.py
util/style/style.py
util/style/verifiers.py

index 0115a56256f9bbe68fa167a137c673a25cc267cf..ddfa81b990f49c2c0c1e17faaf7806790d816f13 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
 # All rights reserved.
index aaa75929f6aaa32816bb7cd13110a99e0bcbda19..83e3e896025a9430452c0bab9dcadec82b38634a 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
 # All rights reserved.
index f3591977b6b27ddb93a680be32199658b6638fcb..b0712fc4528c834a4ae09c1aea92f07b6a1ce3f8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # -----------------------------------------------------------------------------
 # calc.py
index 3461f243e9862b9520c64bf3a5f2723cef633b68..5a8db84fc19fa6aeaf8b16663171522ed25b5f66 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # -----------------------------------------------------------------------------
 # calc.py
index def0fdc791de04f64ccfdfe187e8dbb9313ace83..503c11d8b3c461e4d8282f0b348c9e4ca9d5b7bf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright 2018 Google, Inc.
 #
index 5a4f3454b217b5bcad475ee22d23f5f5757a5742..f10ad6874f31602c891170b5bd8830560f0d75ae 100755 (executable)
@@ -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.
 #
index c8dc9b9613faf7a3aeb049a096aa26f611177515..509724ed74d95987509b9f2a053abcb32d28ea02 100755 (executable)
@@ -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.
index 1bc471108f4305a2e5d611ba4876b683e4c34d96..4230079e6bd7577182bb507a1132cbd093a5ceb9 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index 29c6bf5eaa1a33f3031fe8bb2484c496c45bddad..70e6dfb01a0905b6362509740f33bfa2b281a750 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index 4e0707860388da8c63481b04abc4a7d0da2be786..8cb3811df803bf0b201f8754123b7519ae14e2c5 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index 123d3b1a4dc4e01c4e6b43464df18b0e1db1ab26..00f3e5a12bc5b31d8f0c7126dd8006c33fc53f02 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016-2017 ARM Limited
 # All rights reserved
index 220cf61f6ac92ba6bc3008a10aa8eec1888b9092..90918aea55bbacc028653f4732ff48d1cf1a76ea 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index a57a972286b89e1b378431d33de71bfc0ca336c4..9967669e04a7c3f1ce85ffdeaa8dcc9ad9b76fb2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index 471b882514b18b249b8839e5ac3aa13f5c54868c..02e1fdcc7150b2a533df604a5889053265d930be 100755 (executable)
@@ -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.
 #
index 44a4f2879ce0a069c8724fab71b1c5d20409822d..7707a0e32e44a28ee04d2d04e9459df507abd1c4 100755 (executable)
@@ -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.
 #
index bec4709fcd5a9f5f360c40bcf7556d881aa4593d..e7bd45e24a6cc8654a930e185c83afe6700b1512 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
 
 # Copyright (c) 2010 Advanced Micro Devices, Inc.
 # All rights reserved.
index f3040f7949e0f82be0b8197947a9d525c685b389..a069f55672d0d31fb85e4791a000491d99061a6b 100755 (executable)
@@ -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.
 #
index 59a468989110244a5336fdfa6f9b7f80711bce5f..29a34131f688a9b59d941f52e7a84c1d73d516fc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2012-2013,2015-2016 ARM Limited
 # All rights reserved
index 956a16133e6a113e8b6eb48f3f285e900fe13082..5e8900187c2df4ab9607c62c6b9446dbdaa50dea 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2013 - 2015 ARM Limited
 # All rights reserved
index ff5c73386bb7003cdfe4f1ba32e40cbdbcce265e..d8299b05f4892e0d36a64c5e571b4ceb0fd249c0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2013-2014 ARM Limited
 # All rights reserved
index 9ef9b5fa9deeb1e1836b9b4c69c1b75f482001e9..6a4b386795d748ed92b5c095215fb4cb2e26a493 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2013-2014 ARM Limited
 # All rights reserved
index d8d5ba1435f52efe9fd5cd8c8b776f9fd89fd990..ba8ca9183a4abb82ddca17a01cc96e589559890d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2015 ARM Limited
 # All rights reserved
index c4d4616648aa49741a04a97f0991a7991f659a5d..048071459fbe9a6ed6a95d0a96199609f722f10e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2013-2014 ARM Limited
 # All rights reserved
index 8a12bc3b182f9912716ab03f02d407b97c2e09fe..39ac19164f3aa84f19925e9fe4fb3ca1ef2f30ef 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 import os
 import re
index bb8449a8d882443a38f31828616f157ede0a0b2a..45c36ee2ed81d88e0b36e8921bda5afb317c05f4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2017-2018 Metempsy Technology Consulting
 # All rights reserved.
index 1b93069da57f4b1c2ea0e84f03e2938be7ff6ed9..db515f5ba170a2bcf93d4a737a46d563f842e60c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index da0cdeb90e0847724ce749c46b7c456a0da8316e..9e199b795384ef4ef24b22b4c949095379303fac 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
 # Copyright (c) 2014 ARM Limited
 # All rights reserved
 #
index 3d9be8d6b4e9cb23f8059c3564f1b3aac2a58b15..c27aab1fb89cf8e57a6a66abe902f004fbf7a57d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2017-2018 Arm Limited
 # All rights reserved
index f4f9a9630c7292d50499633902a7949715bd0d40..cc863ceee4266c8d9db8ab3fb32c88176590cb2c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2018 Advanced Micro Devices, Inc.
 # All rights reserved.
index b61d1c5b72b78a03b9c4bd8e28655579ad5fcef1..3913b0d60270b3e08c837decf71cceb6bb414e3e 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
 
 # Copyright (c) 2015 ARM Limited
 # All rights reserved
index 39c63317995c152f848dff187863f68c80641aad..87f9c7285ad86a0bfa5d44cce1bfa3d2cb2a2009 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2013 ARM Limited
 # All rights reserved
index 08fd8d334e7069d1e7badd2f2aff24cb0c0de926..fedafd449a9584623ee67cde6b3636285322094e 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
 
 # Copyright (c) 2011 ARM Limited
 # All rights reserved
index f6444064649f6af4c6bc57d16891c89056547332..b678dd60d6fe4809a8f327778742e71d743b2dcb 100755 (executable)
@@ -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.
index 4c400310c153227da93fdd709344e6b3e3148858..8247218a5597ac81590ab2f937ec0663d1d656fc 100755 (executable)
@@ -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.
 #
index 62ab2e5b99f1526d0496eb3b74e67b2a8ed49cab..d5136502b08d40de93f37424685acdd806f1a883 100755 (executable)
@@ -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.
 #
index 422b14049d504c5eb17f85f45ff91304b8eb87d5..bdfc3b4d7b003159102e8e72e8a40673b41249ef 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2015 ARM Limited
 # All rights reserved
index 5eb18b95aae1fa09619135c84156923b5c4cae17..3cef209ec670d8ca261cc6b4ac59955ca5f1dd24 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2014 ARM Limited
 # All rights reserved
index 1e442f1d907111069614eaca8348afb6a16012fc..5010483697774c0635a71b800b781e84347cfe58 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2013 ARM Limited
 # All rights reserved
index 9ec9b8f520486e814b5668ef1e1121ea34570e18..8008a40c4748e029e891e0a70691c95835f3cd48 100755 (executable)
--- 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.
index da71e65758d14813983fc6068ba0478d66527f86..873d9cc85e6415f9ab1eda93a7ed85cbf7891b45 100755 (executable)
@@ -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.
 #
index b4ccec0d8a0f2829bbf0a88c030fa5d5b02711be..e8408f1effdbdc12d8a615fa3568a68e60c5a97d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 # Copyright (c) 2009 The Hewlett-Packard Development Company
 # All rights reserved.
 #
index 209108c77b06aa052642eca4727c0d28ff63a4a1..6650f0ed83ba959f9631d11367cf53d08e85df5b 100755 (executable)
@@ -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.
index 816d042dcc8629e04cbabbcf89e316cf8af2aff9..98aa1a861fd5553905c852d8c581ba820e05ecf9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2012, 2014 ARM Limited
 # All rights reserved
index 1dd7af34e95e16a33ffea600f0d4d1639d0d5c01..44e53fd1fc59e3d3ee86640d207af04b3012ff58 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index 1bc471108f4305a2e5d611ba4876b683e4c34d96..4230079e6bd7577182bb507a1132cbd093a5ceb9 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index 7e3b444c69dfd66b2b07fcae4aa12989771599e7..d34440596dd318d31109e84eb1a38cd4ee972970 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
index 39b3a13e0b8c6073f4544b7809b2c26cf8046f8a..18389253f16b9eb54476bb1318afb627a9c45bec 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2014-2015 ARM Limited
 # All rights reserved
index 0f58590f5ccd6d146b4ed549571473fe29780a94..1e35a7b9d88f9ec6d4dc7b04f42d3505530c4165 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
 # Copyright (c) 2014, 2016 ARM Limited
 # All rights reserved
 #
index 89247dc4fee0f478d8066ed9c876076029c54d55..33b127a79cada410e1d6bd76a12a2001f5728fdf 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 #
 # Copyright (c) 2014, 2016 ARM Limited
 # All rights reserved