diff options
| author | Mark Johnston <markjdb@gmail.com> | 2020-11-02 14:39:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-02 11:39:30 -0800 |
| commit | 7f344fa6473fd40c7a5c006e5cb6a3017b4fc193 (patch) | |
| tree | 2fa7f2d9cf783c7a09cc6c1b98aec37e16f8e2fb /Makefile | |
| parent | f73622566ee98c1b4d780bf4ad28fbdbde4fdcaa (diff) | |
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)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |
