Skip to content

Commit c25ce58

Browse files
kloenkmasahir0y
authored andcommitted
tweewide: Fix most Shebang lines
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 <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 0477e92 commit c25ce58

26 files changed

+26
-26
lines changed

Documentation/sphinx/parse-headers.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
use strict;
33
use Text::Tabs;
44
use Getopt::Long;

Documentation/target/tcm_mod_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD
33
#
44
# Copyright (c) 2010 Rising Tide Systems

Documentation/trace/postprocess/decode_msr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# add symbolic names to read_msr / write_msr in trace
33
# decode_msr msr-index.h < trace
44
import sys

Documentation/trace/postprocess/trace-pagealloc-postprocess.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This is a POC (proof of concept or piece of crap, take your pick) for reading the
33
# text representation of trace output related to page allocation. It makes an attempt
44
# to extract some high-level information on what is going on. The accuracy of the parser

Documentation/trace/postprocess/trace-vmscan-postprocess.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This is a POC for reading the text representation of trace output related to
33
# page reclaim. It makes an attempt to extract some high-level information on
44
# what is going on. The accuracy of the parser may vary

arch/ia64/scripts/unwcheck.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0
33
#
44
# Usage: unwcheck.py FILE

scripts/bloat-o-meter

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#
33
# Copyright 2004 Matt Mackall <[email protected]>
44
#

scripts/config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# SPDX-License-Identifier: GPL-2.0
33
# Manipulate options in a .config file from the command line
44

scripts/diffconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0
33
#
44
# diffconfig - a tool to compare .config files.

scripts/get_abi.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# SPDX-License-Identifier: GPL-2.0
33

44
use strict;

scripts/show_delta

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0-only
33
#
44
# show_deltas: Read list of printk messages instrumented with

scripts/sphinx-pre-install

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# SPDX-License-Identifier: GPL-2.0-or-later
33
use strict;
44

scripts/split-man.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# SPDX-License-Identifier: GPL-2.0
33
#
44
# Author: Mauro Carvalho Chehab <[email protected]>

scripts/tracing/draw_functrace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0-only
33

44
"""

tools/perf/python/tracepoint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/python
1+
#! /usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0
33
# -*- python -*-
44
# -*- coding: utf-8 -*-

tools/perf/python/twatch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/python
1+
#! /usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0-only
33
# -*- python -*-
44
# -*- coding: utf-8 -*-

tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0-only
33
# -*- coding: utf-8 -*-
44
#

tools/testing/ktest/compare-ktest-sample.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# SPDX-License-Identifier: GPL-2.0
33

44
open (IN,"ktest.pl");

tools/testing/kunit/kunit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# SPDX-License-Identifier: GPL-2.0
33
#
44
# A thin wrapper on top of the KUnit Kernel

tools/testing/kunit/kunit_tool_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# SPDX-License-Identifier: GPL-2.0
33
#
44
# A collection of tests for tools/testing/kunit/kunit.py

tools/testing/selftests/bpf/test_offload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# Copyright (C) 2017 Netronome Systems, Inc.
44
# Copyright (c) 2019 Mellanox Technologies. All rights reserved

tools/testing/selftests/drivers/net/mlxsw/sharedbuffer_configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# SPDX-License-Identifier: GPL-2.0
33

44
import subprocess

tools/testing/selftests/kselftest/prefix.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# SPDX-License-Identifier: GPL-2.0
33
# Prefix all lines with "# ", unbuffered. Command being piped in may need
44
# to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd".

tools/testing/selftests/net/devlink_port_split.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# SPDX-License-Identifier: GPL-2.0
33

44
from subprocess import PIPE, Popen

tools/testing/selftests/tc-testing/tdc_batch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
"""
44
tdc_batch.py - a script to generate TC batch file

tools/testing/selftests/tc-testing/tdc_multibatch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# SPDX-License-Identifier: GPL-2.0
33
"""
44
tdc_multibatch.py - a thin wrapper over tdc_batch.py to generate multiple batch

0 commit comments

Comments
 (0)