X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Makefile.am;h=3f2c3dedd49736afec4863a8d434fbf4c8151d8d;hb=33263a0fec525a7dfb0b0b0c0c21bb9d35b1d12f;hp=172158b2aaad6827e2fc8f5fbceabe329171a59e;hpb=4c550df0e1c78141a807d7b5303c57fa7fc04c7a;p=platform%2Fupstream%2Fautomake.git diff --git a/Makefile.am b/Makefile.am index 172158b..3f2c3de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1081,6 +1081,26 @@ update_copyright_env = \ UPDATE_COPYRIGHT_FORCE=1 \ UPDATE_COPYRIGHT_USE_INTERVALS=2 +# In addition to the several README files, these as well are +# not expected to have a copyright notice. +files_without_copyright = \ + .autom4te.cfg \ + .git-log-fix \ + .gitattributes \ + .gitignore \ + INSTALL \ + COPYING \ + AUTHORS \ + THANKS \ + lib/INSTALL \ + lib/COPYING + +# This script is in the public domain. +files_without_copyright += lib/mkinstalldirs + +# This script has an MIT-style license +files_without_copyright += lib/install-sh + .PHONY: update-copyright update-copyright: $(AM_V_GEN)set -e; \ @@ -1088,9 +1108,12 @@ update-copyright: || { echo "$@: cannot get current year" >&2; exit 1; }; \ sed -i "/^RELEASE_YEAR=/s/=.*$$/=$$current_year/" \ bootstrap.sh configure.ac; \ - excluded_re=`echo $(FETCHFILES) \ - | sed -e 's|^.*/|lib/|' -e 's| | lib/|g' -e 's, ,|,g'`; \ + excluded_re=`( \ + for url in $(FETCHFILES); do echo "$$url"; done \ + | sed -e 's!^.*/!!' -e 's!^.*=!!' -e 's!^!lib/!' \ + && for f in $(files_without_copyright); do echo $$f; done \ + ) | sed -e '$$!s,$$,|,' | tr -d '\012\015'`; \ $(GIT) ls-files \ - | grep -Ev '^(lib/)?(COPYING|INSTALL)$$' \ + | grep -Ev '(^|/)README$$' \ | grep -Ev "^($$excluded_re)$$" \ | $(update_copyright_env) xargs $(srcdir)/lib/$@