X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/622d86f9541c1d7d1971d6e4ad08478ade192212..59442e10fbf012ffec80c0a178778c3698ff4789:/build/check-copyright-notices diff --git a/build/check-copyright-notices b/build/check-copyright-notices index 41576c3ffa..ba08f34bcd 100755 --- a/build/check-copyright-notices +++ b/build/check-copyright-notices @@ -43,162 +43,178 @@ done fixer() { want="${want}" perl -pi~ - "${1}" <<'EOF' BEGIN { undef $/ } -s{^(\#\!.*?\n|\n*---\n.*?\n\.\.\.\n\n?)?}{${1}$ENV{want}\n\n}ms +s{^((\#\!.*?\n|\n*---\n.*?\n\.\.\.\n|<\?xml.*?>\n)\n?)?}{${2}$ENV{want}\n\n}ms EOF } IFS=$'\n' read -a ignores -r -d $'\000' <.licenseignore || true result=0 -git ls-files -z ${@} | \ - while read -rd $'\000' fnm + +coproc git ls-files -z ${@}