X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/13abd32463ba8bb3f281b94a424f51beac8d3825..d084ca24b06c598271844d2ba4c8c40f251c0999:/build/check-copyright-notices diff --git a/build/check-copyright-notices b/build/check-copyright-notices index 8fa7aad0f1..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 } @@ -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/*)