X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9fb7687e6703fa66ed14f98fe212c6c3b6d8b101..b65b2b9df921793fd1d4fca20b1e0738db446489:/build/check-copyright-notices diff --git a/build/check-copyright-notices b/build/check-copyright-notices index f4e95979c0..5298371bd1 100755 --- a/build/check-copyright-notices +++ b/build/check-copyright-notices @@ -43,7 +43,7 @@ done fixer() { want="${want}" perl -pi~ - "${1}" <<'EOF' BEGIN { undef $/ } -s{^((\#\!.*?\n|\n*---\n.*?\n\.\.\.\n)\n?)?}{${2}$ENV{want}\n\n}ms +s{^((\#\!.*?\n|\n*---\n.*?\n\.\.\.\n|<\?xml.*?>\n)\n?)?}{${2}$ENV{want}\n\n}ms EOF } @@ -93,7 +93,7 @@ git ls-files -z ${@} | \ | *.sh | *.service \ | */run | */run-service | */restart-dns-server \ | */nodemanager/doc/*.cfg \ - | */nodemanager/tests/fake.cfg.template \ + | */nodemanager/tests/fake*.cfg.template \ | */nginx.conf \ | build/build.list) fixer=fixer @@ -133,7 +133,13 @@ git ls-files -z ${@} | \ cc="" ce=" */" ;; - *.go | *.scss | *.java | *.js | *.coffee) + *.coffee) + fixer=fixer + cs="### " + cc="" + ce=" ###" + ;; + *.go | *.scss | *.java | *.js) fixer=fixer cc="//" ;; @@ -167,7 +173,7 @@ ${cc} ${cc}${cc:+ }SPDX-License-Identifier: CC-BY-SA-3.0${ce}" found=$(head -n20 "$fnm" | egrep -A${grepAfter} -B${grepBefore} 'Copyright.*Arvados' || true) case ${fnm} in - Makefile | build/* | lib/* | tools/* | apps/* | services/*) + Makefile | build/* | lib/* | tools/* | apps/* | services/* | sdk/cli/bin/crunch-job) want=${wantGPL} ;; crunch_scripts/* | backports/* | docker/* | sdk/*)