]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
tweewide: Fix most Shebang lines
authorFinn Behrens <me@kloenk.de>
Mon, 23 Nov 2020 14:15:33 +0000 (15:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 May 2021 09:38:30 +0000 (11:38 +0200)
commit c25ce589dca10d64dde139ae093abc258a32869c upstream.

Change every shebang which does not need an argument to use /usr/bin/env.
This is needed as not every distro has everything under /usr/bin,
sometimes not even bash.

Signed-off-by: Finn Behrens <me@kloenk.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 files changed:
Documentation/sphinx/parse-headers.pl
Documentation/target/tcm_mod_builder.py
Documentation/trace/postprocess/decode_msr.py
Documentation/trace/postprocess/trace-pagealloc-postprocess.pl
Documentation/trace/postprocess/trace-vmscan-postprocess.pl
arch/ia64/scripts/unwcheck.py
scripts/bloat-o-meter
scripts/config
scripts/diffconfig
scripts/get_abi.pl
scripts/show_delta
scripts/sphinx-pre-install
scripts/split-man.pl
scripts/tracing/draw_functrace.py
tools/perf/python/tracepoint.py
tools/perf/python/twatch.py
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py
tools/testing/ktest/compare-ktest-sample.pl
tools/testing/selftests/bpf/test_offload.py
tools/testing/selftests/kselftest/prefix.pl
tools/testing/selftests/tc-testing/tdc_batch.py
tools/testing/selftests/tc-testing/tdc_multibatch.py

index c518050ffc3fb22b43a0d668028ea9b1d8444102..0dcf369ab9040b384fc54889c4cbd13d8673916b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 use strict;
 use Text::Tabs;
 use Getopt::Long;
index 95d6e31f1e3a14ee2d3c180d99120109544ced38..85e496086d6ecbf6df849261c44a2a061fc281f9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD
 #
 # Copyright (c) 2010 Rising Tide Systems
index 0ab40e0db5809921a395e18ca23e0cfe2823a280..aa9cc7abd5c2bec913eca3e76d0ea2f7b0079519 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # add symbolic names to read_msr / write_msr in trace
 # decode_msr msr-index.h < trace
 import sys
index 0a120aae33ce5c9836dad948b18736ea183e6801..b9b7d80c2f9d2d5afc09e5b40d6ab44370c6e45c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This is a POC (proof of concept or piece of crap, take your pick) for reading the
 # text representation of trace output related to page allocation. It makes an attempt
 # to extract some high-level information on what is going on. The accuracy of the parser
index 995da15b16cab8a6d6fb051b65c8e113c3e7423e..2f4e39875fb39cc0d0bb812504e1f25f09c8a035 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This is a POC for reading the text representation of trace output related to
 # page reclaim. It makes an attempt to extract some high-level information on
 # what is going on. The accuracy of the parser may vary
index c55276e31b6b68050a3b2ed84386cfd9d39b5eb3..bfd1b671e35fcb96f5b56c332f802a00b9d5f374 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # SPDX-License-Identifier: GPL-2.0
 #
 # Usage: unwcheck.py FILE
index 8c965f6a988122f1180d34818dcc8007bf1f944b..bcd66a0144534b36eb8bdc78d7421cd868d47e79 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Copyright 2004 Matt Mackall <mpm@selenic.com>
 #
index eee5b7f3a092ae4ac46bcdf92ffe8bb3c643aafd..8c8d7c3d7accc77b31ea6e5f0e4749c35a2524d3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0
 # Manipulate options in a .config file from the command line
 
index 89abf777f1973a23a539209c6b151c5fdc9e4e12..627eba5849b5ccf6a018cb1be1fd27341807fb62 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # SPDX-License-Identifier: GPL-2.0
 #
 # diffconfig - a tool to compare .config files.
index c738cb79551411ad5c3bd3d183f75e8ca5e62c44..ba87b230fe0a41f8ff557b352048368def6f6354 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0
 
 use strict;
index 264399307c4fcf3e0cbfad0d118f2d47f3273fc1..28e67e178194191bb1b4c2f5b02bc727470e67b1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # SPDX-License-Identifier: GPL-2.0-only
 #
 # show_deltas: Read list of printk messages instrumented with
index 3b638c0e1a4fd8aa169901bc86954699a637e81a..62cb61baad83f2398219336fa075ea6917c61d46 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0-or-later
 use strict;
 
index c3db607ee9ec19909b8b1c78328795a1ce23f12c..96bd99dc977a52f0c2a9ebbaa7a5f6b99477153b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0
 #
 # Author: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
index b657357585209e8a8037885d4fbafee865197a77..74f8aadfd4cbc93863714ad82bf047850cd23822 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # SPDX-License-Identifier: GPL-2.0-only
 
 """
index eb76f6516247e136f0277ea659f07317d3e11fbc..461848c7f57dca3dc7e61f0df5153309d97a4419 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
 # SPDX-License-Identifier: GPL-2.0
 # -*- python -*-
 # -*- coding: utf-8 -*-
index ff87ccf5b708597a814154e3afef0a10163aca79..04f3db29b9bc185bf6c653ea84bde3563c2a4754 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
 # SPDX-License-Identifier: GPL-2.0-only
 # -*- python -*-
 # -*- coding: utf-8 -*-
index 1351975d0769967c1cacb0568e241ab87151ae97..085cbe4a56df635cff2295aa606335b4aa9073cf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # SPDX-License-Identifier: GPL-2.0-only
 # -*- coding: utf-8 -*-
 #
index 4118eb4a842d2ec0af5410b319c9734ce74b3457..ebea21d0a1be8b1a63d645561aa86c66e7212c10 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0
 
 open (IN,"ktest.pl");
index 8f918847ddf89b57208cc04791442a1c9f270b73..f9e3daaf7cffb8130972ca5c131bc480d809738c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 # Copyright (C) 2017 Netronome Systems, Inc.
 # Copyright (c) 2019 Mellanox Technologies. All rights reserved
index 31f7c2a0a8bd462da9329d6e90b7fae60ca66bc5..12a7f4ca2684d07c7464380527e7dbee91d40f0f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0
 # Prefix all lines with "# ", unbuffered. Command being piped in may need
 # to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd".
index 995f66ce43eba294b529b2ab1dbedf64437aa7bc..35d5d949378420c1c421825b93253808276ecbf9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 """
 tdc_batch.py - a script to generate TC batch file
index 5e7237952e497bc10e2ff7e74058287b823d0ce0..48e1f17ff2e86807e3f8334758b4d3c90d2810f8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # SPDX-License-Identifier: GPL-2.0
 """
 tdc_multibatch.py - a thin wrapper over tdc_batch.py to generate multiple batch