>From db5ddc2bfceeb4470d02c2ff2375cf5900415493 Mon Sep 17 00:00:00 2001 Message-Id: From: Stefano Lattarini Date: Thu, 16 Feb 2012 10:33:30 +0100 Subject: [PATCH] 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. --- Makefile.am | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Makefile.am b/Makefile.am index 76c3e69..d02731f 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/$@ -- 1.7.9