Simple script to look for drivers and scripts that are missing requires SPDX header.
Signed-off-by: Stephen Hemminger <step...@networkplumber.org> --- v3 - pickup more places with boilerplate text avoid false positive for cocci scripts or abignore devtools/spdx-check.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 devtools/spdx-check.sh diff --git a/devtools/spdx-check.sh b/devtools/spdx-check.sh new file mode 100755 index 000000000000..a5be10b26f44 --- /dev/null +++ b/devtools/spdx-check.sh @@ -0,0 +1,24 @@ +#! /bin/sh +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) 2019 Microsoft Corporation +# +# Produce a list of files with incorrect license +# information + +echo "Files without SPDX License" +echo "--------------------------" + +git grep -L SPDX-License-Identifier -- \ + ':^.git*' ':^.ci/*' ':^.travis.yml' \ + ':^README' ':^MAINTAINERS' ':^VERSION' ':^ABI_VERSION' \ + ':^*/Kbuild' ':^*/README' \ + ':^license/' ':^doc/' ':^config/' ':^buildtools/' \ + ':^*.cocci' ':^*.abignore' \ + ':^*.def' ':^*.map' ':^*.ini' ':^*.data' ':^*.cfg' ':^*.txt' + +echo +echo "Files with additional license text" +echo "----------------------------------" + +git grep -l Redistribution -- \ + ':^license/' ':^/devtools/spdx-check.sh' -- 2.20.1