mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
d396236a83
Remove hard coded paths from shebangs and other references because they do not play well in nix-land. Either use /usr/bin/env to do runtime PATH based lookup or avoid absolute paths so PATH look up happens instead. Signed-off-by: Thierry Laurion <insurgo@riseup.net> Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev> Signed-off-by: Thierry Laurion <insurgo@riseup.net>
101 lines
3.0 KiB
Diff
101 lines
3.0 KiB
Diff
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter
|
|
index d7ca46c612b3..652e9542043f 100755
|
|
--- a/scripts/bloat-o-meter
|
|
+++ b/scripts/bloat-o-meter
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python
|
|
+#!/usr/bin/env python
|
|
#
|
|
# Copyright 2004 Matt Mackall <mpm@selenic.com>
|
|
#
|
|
diff --git a/scripts/check-sysctl-docs b/scripts/check-sysctl-docs
|
|
index 8bcb9e26c7bc..90137319c50a 100755
|
|
--- a/scripts/check-sysctl-docs
|
|
+++ b/scripts/check-sysctl-docs
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/gawk -f
|
|
+#!/usr/bin/env -S gawk -f
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Script to check sysctl documentation against source files
|
|
diff --git a/scripts/diffconfig b/scripts/diffconfig
|
|
index 89abf777f197..627eba5849b5 100755
|
|
--- a/scripts/diffconfig
|
|
+++ b/scripts/diffconfig
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python
|
|
+#!/usr/bin/env python
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# diffconfig - a tool to compare .config files.
|
|
diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl
|
|
index 68dab828a722..92d9aa6cc4f5 100755
|
|
--- a/scripts/get_abi.pl
|
|
+++ b/scripts/get_abi.pl
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/perl
|
|
+#!/usr/bin/env perl
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
use strict;
|
|
diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh
|
|
index f2be0ff9a738..7a5b546ece16 100755
|
|
--- a/scripts/ld-version.sh
|
|
+++ b/scripts/ld-version.sh
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/awk -f
|
|
+#!/usr/bin/env -S awk -f
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# extract linker version number from stdin and turn into single number
|
|
{
|
|
diff --git a/scripts/parse-maintainers.pl b/scripts/parse-maintainers.pl
|
|
index 2ca4eb3f190d..9515765158fa 100755
|
|
--- a/scripts/parse-maintainers.pl
|
|
+++ b/scripts/parse-maintainers.pl
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/perl -w
|
|
+#!/usr/bin/env -S perl -w
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
use strict;
|
|
diff --git a/scripts/show_delta b/scripts/show_delta
|
|
index 264399307c4f..28e67e178194 100755
|
|
--- a/scripts/show_delta
|
|
+++ b/scripts/show_delta
|
|
@@ -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
|
|
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install
|
|
index 40fa6923e80a..828a8615a918 100755
|
|
--- a/scripts/sphinx-pre-install
|
|
+++ b/scripts/sphinx-pre-install
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/perl
|
|
+#!/usr/bin/env perl
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
use strict;
|
|
|
|
diff --git a/scripts/split-man.pl b/scripts/split-man.pl
|
|
index c3db607ee9ec..96bd99dc977a 100755
|
|
--- a/scripts/split-man.pl
|
|
+++ b/scripts/split-man.pl
|
|
@@ -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>
|
|
diff --git a/scripts/ver_linux b/scripts/ver_linux
|
|
index 0968a3070eff..345b92f71d2d 100755
|
|
--- a/scripts/ver_linux
|
|
+++ b/scripts/ver_linux
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/awk -f
|
|
+#!/usr/bin/env -S awk -f
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Before running this script please ensure that your PATH is
|
|
# typical as you use for compilation/installation. I use
|