X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9fb7687e6703fa66ed14f98fe212c6c3b6d8b101..e8d11e963248fada51bdb1ecc59446adccff440f:/build/check-copyright-notices diff --git a/build/check-copyright-notices b/build/check-copyright-notices index f4e95979c0..cf4e9bf181 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="//" ;;