From: Stefano Lattarini Date: Thu, 16 Feb 2012 09:33:30 +0000 (+0100) Subject: update-copyright: don't touch files synced from external packages X-Git-Tag: v1.11.3b~13^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5ddc2bfceeb4470d02c2ff2375cf5900415493;p=thirdparty%2Fautomake.git update-copyright: don't touch files synced from external packages * Makefile.am (update-copyright): Do not update copyright years of files synced from external packages, as given by the '$(FETCHFILES)' variable. Silence the recipe since we are at it. --- diff --git a/Makefile.am b/Makefile.am index 76c3e6986..d02731f26 100644 --- a/Makefile.am +++ b/Makefile.am @@ -821,5 +821,9 @@ update_copyright_env = \ .PHONY: update-copyright update-copyright: - git ls-files | grep -Ev 'COPYING|INSTALL' \ + $(AM_V_GEN)excluded_re=`echo $(FETCHFILES) \ + | sed -e 's|^|lib/|' -e 's| | lib/|g' -e 's, ,|,g'`; \ + $(GIT) ls-files \ + | grep -Ev '/(COPYING|INSTALL)' \ + | grep -Ev "^($$excluded_re)$$" \ | $(update_copyright_env) xargs $(srcdir)/lib/$@