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 08:59:50 +0000 (10:59 +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>
14 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/split-man.pl
tools/perf/python/tracepoint.py
tools/testing/ktest/compare-ktest-sample.pl
tools/testing/selftests/bpf/test_offload.py
tools/testing/selftests/tc-testing/tdc_batch.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 94bf6944bb1e412b85f649aab136155052092e29..7e79ff6b09e0e32b80fcbba10498177d32752b7c 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 66bfd8396877f933a1f70fffc87cbf09e9254772..9efcf5ed8cb508b14b733a2b86395a2ef5f9a985 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 a923f05edb36604579901caf7fa1d1ad0a67c98e..d2eadbd4521c06e3581f6a28323f5ef2ca672cf9 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 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 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 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 2229e55216a97b00b9186e189f0c9e6ade3a206c..6b46db61c6d3fd6db05277c638d0967aad7c9407 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 # Copyright (C) 2017 Netronome Systems, Inc.
 #
index 52fa539dc662b48fe6127ca571c0785ba014fc81..3d8350d6bfe18596c299070d378eb5692117dd7e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 """
 tdc_batch.py - a script to generate TC batch file