update-copyright: don't touch files synced from external packages
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 16 Feb 2012 09:33:30 +0000 (10:33 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 16 Feb 2012 09:33:57 +0000 (10:33 +0100)
* 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

index 76c3e69..d02731f 100644 (file)
@@ -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/$@