X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/13abd32463ba8bb3f281b94a424f51beac8d3825..22f9af1104fa45e95ef3cd8b5a770fc0b9ed0fd3:/build/check-copyright-notices diff --git a/build/check-copyright-notices b/build/check-copyright-notices index 8fa7aad0f1..857a9c8ebc 100755 --- a/build/check-copyright-notices +++ b/build/check-copyright-notices @@ -43,163 +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 ${@}