From 7f344fa6473fd40c7a5c006e5cb6a3017b4fc193 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Mon, 2 Nov 2020 14:39:30 -0500 Subject: tools: add script to check shebang lines (#2234) * pkg/vcs: remove obsolete test script Per Dmitry, this should have been removed as part of 8f58e4b ("pkg/bisect: switch to kconfig.Minimize"). * all: convert shebang lines to use /usr/bin/env * Makefile: fix non-portable use of find(1) --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ac0e90e4f..69049d6b2 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,8 @@ endif bin/syz-extract bin/syz-fmt \ extract generate generate_go generate_sys \ format format_go format_cpp format_sys \ - tidy test test_race check_copyright check_language check_whitespace check_links check_diff check_commits \ + tidy test test_race \ + check_copyright check_language check_whitespace check_links check_diff check_commits check_shebang \ presubmit presubmit_smoke presubmit_build presubmit_arch presubmit_big presubmit_race presubmit_old all: host target @@ -276,7 +277,7 @@ presubmit: presubmit_smoke: $(MAKE) generate - $(MAKE) -j100 check_commits check_diff check_copyright check_language check_whitespace check_links presubmit_build tidy + $(MAKE) -j100 check_commits check_diff check_copyright check_language check_whitespace check_links check_shebang presubmit_build tidy $(MAKE) test presubmit_build: @@ -372,7 +373,7 @@ check_commits: ./tools/check-commits.sh check_links: - python ./tools/check_links.py $$(pwd) $$(find -name '*.md' | grep -v "./vendor/") + python ./tools/check_links.py $$(pwd) $$(find . -name '*.md' | grep -v "./vendor/") # Check that the diff is empty. This is meant to be executed after generating # and formatting the code to make sure that everything is committed. @@ -383,3 +384,6 @@ check_diff: sed "s#.*#&:1:1: The file is not formatted/regenerated. Run 'make generate' and include it into the commit.#g"; \ false; \ fi + +check_shebang: + ./tools/check-shebang.sh -- cgit mrf-deployment