X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/e9090f6f9ef4dfd246933e8dfdfcc98d8a306059..23a624ca1d40fa9cefd7229ac6152b79278a6517:/packages/load-relative/Makefile.am diff --git a/packages/load-relative/Makefile.am b/packages/load-relative/Makefile.am index 981101be3..04aca0910 100644 --- a/packages/load-relative/Makefile.am +++ b/packages/load-relative/Makefile.am @@ -35,3 +35,21 @@ ChangeLog: ACLOCAL_AMFLAGS=-I . endif + +CR_EXCEPTIONS=copyright_exceptions +#: Check for GNU Copyrights. +check_copyrights: + @echo "Compute exceptions >$(CR_EXCEPTIONS)~" + @export LANG=C; \ + find . -name '.git' -prune -o -name '*.el' -print0 | \ + xargs -0 grep -L 'Free Software Foundation, Inc' | \ + grep -v '\(\.dir-locals\|.-\(pkg\|autoloads\)\)\.el$$'; \ + find . -name '.git' -prune -o -name '*.el' -print | \ + while read f; do \ + fquoted="$$(echo $$f|tr '|' '_')"; \ + sed -n -e '/[Cc]opyright.*, *[1-9][-0-9]*,\?$$/N' \ + -e '/Free Software Foundation/d' \ + -e "s|^\\(.*[Cc]opyright\\)|$$fquoted:\\1|p" \ + "$$f"; \ + done | sort >$(CR_EXCEPTIONS)~ + diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"