From 0ad5fbd48d0169576d6ed4666b909635b7cde89b Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 24 Dec 2020 12:06:38 -0700 Subject: 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 Change-Id: Ifcc56aa21092cd3866eacb6a02d198110ec6051d Reviewed-on: https://review.coreboot.org/c/coreboot/+/48904 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/lint/lint | 2 +- util/lint/lint-000-license-headers | 2 +- util/lint/lint-001-no-global-config-in-romstage | 2 +- util/lint/lint-007-checkpatch | 2 +- util/lint/lint-008-kconfig | 2 +- util/lint/lint-014-qualified-types | 2 +- util/lint/lint-extended-007-checkpatch | 2 +- util/lint/lint-extended-015-final-newlines | 2 +- util/lint/lint-extended-020-signed-off-by | 2 +- util/lint/lint-stable-000-license-headers | 2 +- util/lint/lint-stable-003-whitespace | 2 +- util/lint/lint-stable-004-style-labels | 2 +- util/lint/lint-stable-005-board-status | 2 +- util/lint/lint-stable-006-board-name | 2 +- util/lint/lint-stable-008-kconfig | 2 +- util/lint/lint-stable-009-old-licenses | 2 +- util/lint/lint-stable-010-asm-syntax | 2 +- util/lint/lint-stable-012-executable-bit | 2 +- util/lint/lint-stable-013-site-local | 2 +- util/lint/lint-stable-016-non-ascii | 2 +- util/lint/lint-stable-017-configs | 2 +- util/lint/lint-stable-018-symlinks | 2 +- util/lint/lint-stable-019-header-files | 2 +- util/lint/lint-stable-021-coreboot-lowercase | 2 +- util/lint/lint-stable-022-clang-format | 2 +- util/lint/lint-stable-023-filenames | 2 +- util/lint/lint-stable-024-kconfig-no-subsystem | 2 +- util/lint/remccoms3.sed | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) (limited to 'util/lint') diff --git a/util/lint/lint b/util/lint/lint index a8c08d5370..6bf982d1af 100755 --- a/util/lint/lint +++ b/util/lint/lint @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers index c43151acfc..2f65321a6f 100755 --- a/util/lint/lint-000-license-headers +++ b/util/lint/lint-000-license-headers @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-001-no-global-config-in-romstage b/util/lint/lint-001-no-global-config-in-romstage index 1ed55e0ca7..e81bea7d34 100755 --- a/util/lint/lint-001-no-global-config-in-romstage +++ b/util/lint/lint-001-no-global-config-in-romstage @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-007-checkpatch b/util/lint/lint-007-checkpatch index bc34e6bb4f..113d0ae9d1 100755 --- a/util/lint/lint-007-checkpatch +++ b/util/lint/lint-007-checkpatch @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-008-kconfig b/util/lint/lint-008-kconfig index 31aba55e92..c24ff14069 100755 --- a/util/lint/lint-008-kconfig +++ b/util/lint/lint-008-kconfig @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-014-qualified-types b/util/lint/lint-014-qualified-types index 8da23b6d1f..48810cf3cd 100755 --- a/util/lint/lint-014-qualified-types +++ b/util/lint/lint-014-qualified-types @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-extended-007-checkpatch b/util/lint/lint-extended-007-checkpatch index e2b39de3e6..8ec11885b1 100755 --- a/util/lint/lint-extended-007-checkpatch +++ b/util/lint/lint-extended-007-checkpatch @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-extended-015-final-newlines b/util/lint/lint-extended-015-final-newlines index 74f1f03ecc..3ab0fbfbc9 100755 --- a/util/lint/lint-extended-015-final-newlines +++ b/util/lint/lint-extended-015-final-newlines @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-extended-020-signed-off-by b/util/lint/lint-extended-020-signed-off-by index cc1b7acf81..6d569aa80a 100755 --- a/util/lint/lint-extended-020-signed-off-by +++ b/util/lint/lint-extended-020-signed-off-by @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check for a signed-off-by line on the latest git commit diff --git a/util/lint/lint-stable-000-license-headers b/util/lint/lint-stable-000-license-headers index 518b232f32..ccecba6ce4 100755 --- a/util/lint/lint-stable-000-license-headers +++ b/util/lint/lint-stable-000-license-headers @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-only # # DESCR: Check that files have license headers diff --git a/util/lint/lint-stable-003-whitespace b/util/lint/lint-stable-003-whitespace index 430404383a..fd4d0e4d12 100755 --- a/util/lint/lint-stable-003-whitespace +++ b/util/lint/lint-stable-003-whitespace @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-004-style-labels b/util/lint/lint-stable-004-style-labels index 36d2581974..393774fdae 100755 --- a/util/lint/lint-stable-004-style-labels +++ b/util/lint/lint-stable-004-style-labels @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-005-board-status b/util/lint/lint-stable-005-board-status index d87f8a41e9..617440bd14 100755 --- a/util/lint/lint-stable-005-board-status +++ b/util/lint/lint-stable-005-board-status @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that every board has a meaningful board_info.txt diff --git a/util/lint/lint-stable-006-board-name b/util/lint/lint-stable-006-board-name index 77d4e56708..6f4e4b6751 100755 --- a/util/lint/lint-stable-006-board-name +++ b/util/lint/lint-stable-006-board-name @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that every vendor and board has a Kconfig.name diff --git a/util/lint/lint-stable-008-kconfig b/util/lint/lint-stable-008-kconfig index 3b204fbd57..3323971fac 100755 --- a/util/lint/lint-stable-008-kconfig +++ b/util/lint/lint-stable-008-kconfig @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-009-old-licenses b/util/lint/lint-stable-009-old-licenses index d2aff3a83a..8226fdd642 100755 --- a/util/lint/lint-stable-009-old-licenses +++ b/util/lint/lint-stable-009-old-licenses @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-010-asm-syntax b/util/lint/lint-stable-010-asm-syntax index 344068fcb3..474a05d423 100755 --- a/util/lint/lint-stable-010-asm-syntax +++ b/util/lint/lint-stable-010-asm-syntax @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-012-executable-bit b/util/lint/lint-stable-012-executable-bit index 5651a67d54..640bb08870 100755 --- a/util/lint/lint-stable-012-executable-bit +++ b/util/lint/lint-stable-012-executable-bit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that source files are not executable diff --git a/util/lint/lint-stable-013-site-local b/util/lint/lint-stable-013-site-local index 4579cf94c5..53693f21d3 100755 --- a/util/lint/lint-stable-013-site-local +++ b/util/lint/lint-stable-013-site-local @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Verify that site-local is not in the coreboot repository diff --git a/util/lint/lint-stable-016-non-ascii b/util/lint/lint-stable-016-non-ascii index 4c97c37ba0..52b6679aa1 100755 --- a/util/lint/lint-stable-016-non-ascii +++ b/util/lint/lint-stable-016-non-ascii @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-017-configs b/util/lint/lint-stable-017-configs index 4f298508ce..311ef38cd0 100755 --- a/util/lint/lint-stable-017-configs +++ b/util/lint/lint-stable-017-configs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-018-symlinks b/util/lint/lint-stable-018-symlinks index 8739a8b019..cd5c8440c1 100755 --- a/util/lint/lint-stable-018-symlinks +++ b/util/lint/lint-stable-018-symlinks @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-019-header-files b/util/lint/lint-stable-019-header-files index 11cb6b750c..fc440d1b69 100755 --- a/util/lint/lint-stable-019-header-files +++ b/util/lint/lint-stable-019-header-files @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-021-coreboot-lowercase b/util/lint/lint-stable-021-coreboot-lowercase index 45bc8199fd..b13cb4487e 100755 --- a/util/lint/lint-stable-021-coreboot-lowercase +++ b/util/lint/lint-stable-021-coreboot-lowercase @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-022-clang-format b/util/lint/lint-stable-022-clang-format index 031fdb1f39..9c94fbc060 100755 --- a/util/lint/lint-stable-022-clang-format +++ b/util/lint/lint-stable-022-clang-format @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-023-filenames b/util/lint/lint-stable-023-filenames index a70f988957..8b519a80dd 100755 --- a/util/lint/lint-stable-023-filenames +++ b/util/lint/lint-stable-023-filenames @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-stable-024-kconfig-no-subsystem b/util/lint/lint-stable-024-kconfig-no-subsystem index 46dbc971f0..9a532e8c5e 100755 --- a/util/lint/lint-stable-024-kconfig-no-subsystem +++ b/util/lint/lint-stable-024-kconfig-no-subsystem @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that no board's Kconfig sets SUBSYSTEM_(VENDOR|DEVICE)_ID diff --git a/util/lint/remccoms3.sed b/util/lint/remccoms3.sed index 429d3bd422..fd700df80f 100644 --- a/util/lint/remccoms3.sed +++ b/util/lint/remccoms3.sed @@ -1,4 +1,4 @@ -#! /bin/sed -nf +#!/usr/bin/env sed -nf # Remove C and C++ comments, by Brian Hiles (brian_hiles@rocketmail.com) -- cgit v1.2.3