diff options
author | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-10-07 01:58:27 +0000 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-17 07:32:03 +0000 |
commit | c2e494136731571a78b2bdd7ca9dc536a8b5aecd (patch) | |
tree | a31bde7ce2d3ce4a96445200491b12c4e40a14f0 /util/scripts | |
parent | 15316e2321e9936da5f0906ec76545830938a46e (diff) | |
download | coreboot-c2e494136731571a78b2bdd7ca9dc536a8b5aecd.tar.xz |
treewide: use /usr/bin/env where appropriate
Some Unix systems (GuixSD, NixOS) do not install programs like
Bash and Python to /usr/bin, and /usr/bin/env has to be used to
locate these instead.
Change-Id: I7546bcb881c532adc984577ecb0ee2ec4f2efe00
Signed-off-by: Yegor Timoshenko <yegortimoshenko@riseup.net>
Reviewed-on: https://review.coreboot.org/28953
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/scripts')
-rwxr-xr-x | util/scripts/config | 2 | ||||
-rwxr-xr-x | util/scripts/dts-to-fmd.sh | 2 | ||||
-rwxr-xr-x | util/scripts/gerrit-rebase | 2 | ||||
-rwxr-xr-x | util/scripts/get_maintainer.pl | 3 | ||||
-rwxr-xr-x | util/scripts/parse-maintainers.pl | 3 | ||||
-rwxr-xr-x | util/scripts/prepare-commit-msg.clang-format | 2 | ||||
-rwxr-xr-x | util/scripts/ucode_h_to_bin.sh | 2 | ||||
-rwxr-xr-x | util/scripts/update_submodules | 2 |
8 files changed, 10 insertions, 8 deletions
diff --git a/util/scripts/config b/util/scripts/config index e0e39826da..ba11e350e8 100755 --- a/util/scripts/config +++ b/util/scripts/config @@ -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 diff --git a/util/scripts/dts-to-fmd.sh b/util/scripts/dts-to-fmd.sh index 00e718bebd..b468b35bcd 100755 --- a/util/scripts/dts-to-fmd.sh +++ b/util/scripts/dts-to-fmd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2015 Google Inc. # diff --git a/util/scripts/gerrit-rebase b/util/scripts/gerrit-rebase index c4f8a80e2a..276142d6b9 100755 --- a/util/scripts/gerrit-rebase +++ b/util/scripts/gerrit-rebase @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Google Inc. # diff --git a/util/scripts/get_maintainer.pl b/util/scripts/get_maintainer.pl index 4f34a4e6fb..c24a6d4d69 100755 --- a/util/scripts/get_maintainer.pl +++ b/util/scripts/get_maintainer.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # (c) 2007, Joe Perches <joe@perches.com> # created from checkpatch.pl # @@ -11,6 +11,7 @@ # Licensed under the terms of the GNU GPL License version 2 use strict; +use warnings; my $P = $0; my $V = '0.26'; diff --git a/util/scripts/parse-maintainers.pl b/util/scripts/parse-maintainers.pl index a0fe34349b..c0fd88cdc3 100755 --- a/util/scripts/parse-maintainers.pl +++ b/util/scripts/parse-maintainers.pl @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; my %map; diff --git a/util/scripts/prepare-commit-msg.clang-format b/util/scripts/prepare-commit-msg.clang-format index 7033f3cc07..a6b3d08a26 100755 --- a/util/scripts/prepare-commit-msg.clang-format +++ b/util/scripts/prepare-commit-msg.clang-format @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash files=`git diff --cached --name-only | grep '\.[ch]$'` if [ -z "$files" ]; then exit 0 diff --git a/util/scripts/ucode_h_to_bin.sh b/util/scripts/ucode_h_to_bin.sh index 2d7f5fa132..f08b053b8e 100755 --- a/util/scripts/ucode_h_to_bin.sh +++ b/util/scripts/ucode_h_to_bin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of the coreboot project. # diff --git a/util/scripts/update_submodules b/util/scripts/update_submodules index b555495eda..68d8a948ac 100755 --- a/util/scripts/update_submodules +++ b/util/scripts/update_submodules @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of the coreboot project. # |