X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2a97a35394b560daa52eef95616429603dfeb8b5..f42ee7c19b794e25db30051b1dfc4bee83929bcd:/build/check-copyright-notices diff --git a/build/check-copyright-notices b/build/check-copyright-notices index d52c043bb8..857a9c8ebc 100755 --- a/build/check-copyright-notices +++ b/build/check-copyright-notices @@ -43,162 +43,175 @@ 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 } 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 ${@}