util: Update all shebangs to use /usr/bin/env

Instead of hardcoding paths to the executables, use the version in the
path.  This allows the scripts to work on more systems, and allows the
binary version to be changed more easily if needed.

Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: Ifcc56aa21092cd3866eacb6a02d198110ec6051d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48904
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Martin Roth 2020-12-24 12:06:38 -07:00 committed by Patrick Georgi
parent 2cee2ff256
commit 0ad5fbd48d
54 changed files with 54 additions and 54 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# #

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
# From the flashrom project but heavily modified since then. # From the flashrom project but heavily modified since then.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# shellcheck disable=SC2030,SC2031,SC2059 # shellcheck disable=SC2030,SC2031,SC2059
# The above line must be directly after the shebang line. # The above line must be directly after the shebang line.
# Disables these warnings: # Disables these warnings:

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# usage: $0 [weekly|monthly|quarterly] < filenames # usage: $0 [weekly|monthly|quarterly] < filenames
# sorts files of the form VENDOR/BOARD/COMMIT/DATE/revision.txt # sorts files of the form VENDOR/BOARD/COMMIT/DATE/revision.txt
# into buckets of the given granularity # into buckets of the given granularity

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/usr/bin/env sh
ls -d */*/*/*/ | `dirname $0`/bucketize.sh weekly | `dirname $0`/tohtml.sh ls -d */*/*/*/ | `dirname $0`/bucketize.sh weekly | `dirname $0`/tohtml.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
export COREBOOT_DIR="../coreboot.git" export COREBOOT_DIR="../coreboot.git"
export GIT_DIR="$COREBOOT_DIR/.git" export GIT_DIR="$COREBOOT_DIR/.git"
CODE_GITWEB="https://review.coreboot.org/gitweb/cgit/coreboot.git/commit/?id=" CODE_GITWEB="https://review.coreboot.org/gitweb/cgit/coreboot.git/commit/?id="

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/usr/bin/env sh
exec java -jar /usr/lib/ditaa0_9.jar $* exec java -jar /usr/lib/ditaa0_9.jar $*

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ "$1" == "livehtml" ]; then if [ "$1" == "livehtml" ]; then
echo "Starting live documentation build" echo "Starting live documentation build"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
## ##
## SPDX-License-Identifier: GPL-2.0-only ## SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## ##
## This program is free software; you can redistribute it and/or modify ## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by ## it under the terms of the GNU General Public License as published by

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## ##
## This program is free software; you can redistribute it and/or modify ## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by ## it under the terms of the GNU General Public License as published by

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## ##
## This program is free software; you can redistribute it and/or modify ## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by ## it under the terms of the GNU General Public License as published by

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Needed for systems without gettext # Needed for systems without gettext
$* -x c -o /dev/null - > /dev/null 2>&1 << EOF $* -x c -o /dev/null - > /dev/null 2>&1 << EOF
#include <libintl.h> #include <libintl.h>

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Check ncurses compatibility # Check ncurses compatibility
# What library to link # What library to link

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
# DESCR: Check for a signed-off-by line on the latest git commit # DESCR: Check for a signed-off-by line on the latest git commit

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
# #
# DESCR: Check that files have license headers # DESCR: Check that files have license headers

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
# DESCR: Check that every board has a meaningful board_info.txt # DESCR: Check that every board has a meaningful board_info.txt

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
# DESCR: Check that every vendor and board has a Kconfig.name # DESCR: Check that every vendor and board has a Kconfig.name

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
# DESCR: Check that source files are not executable # DESCR: Check that source files are not executable

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
# DESCR: Verify that site-local is not in the coreboot repository # DESCR: Verify that site-local is not in the coreboot repository

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
# DESCR: Check that no board's Kconfig sets SUBSYSTEM_(VENDOR|DEVICE)_ID # DESCR: Check that no board's Kconfig sets SUBSYSTEM_(VENDOR|DEVICE)_ID

View File

@ -1,4 +1,4 @@
#! /bin/sed -nf #!/usr/bin/env sed -nf
# Remove C and C++ comments, by Brian Hiles (brian_hiles@rocketmail.com) # Remove C and C++ comments, by Brian Hiles (brian_hiles@rocketmail.com)

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# This script is based on: # This script is based on:
# https://docs.google.com/document/d/1Pvf9Yxorcd3sbgs8WcomcTl3J4bmX6e1UE0ROCefR88 # https://docs.google.com/document/d/1Pvf9Yxorcd3sbgs8WcomcTl3J4bmX6e1UE0ROCefR88

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# cross-repo-cherrypick - rebase helper script # cross-repo-cherrypick - rebase helper script
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# #
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Permission to use, copy, modify, and/or distribute this software for # Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the # any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all copies. # above copyright notice and this permission notice appear in all copies.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# SPDX-License-Identifier: ISC # SPDX-License-Identifier: ISC
filelist=$(git ls-files $* | \ filelist=$(git ls-files $* | \