summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-01-01 20:13:03 +0100
committerJim Meyering <meyering@redhat.com>2011-01-01 20:13:03 +0100
commit1109937d44ce8e3897e1dae14f0adb39bff87f91 (patch)
tree3bbe9bc1820a683e44f7bcd9ae1e3fb63df10222 /Makefile
parent221d8efe25aa7f053d3a2d2dedb4f98886500784 (diff)
downloadgnulib-1109937d44ce8e3897e1dae14f0adb39bff87f91.tar.gz
maint: refine the update-copyright rule
* Makefile (update-copyright): Also exclude any file that includes the "GENERATED AUTOMATICALLY" comment, being careful not to exclude code that merely generates the comment.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8bccbe87d7..745c603c70 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,8 @@ MODULES.html: MODULES.html.sh
# to update all FSF copyright year lists here.
# We exclude the files listed in srclist.txt (maintained elsewhere)
# as well as those in tests/unictype (generated).
+# Also exclude any file that includes the "GENERATED AUTOMATICALLY" comment,
+# being careful not to exclude code that merely generates the comment.
update-copyright:
exempt=$$(mktemp); \
grep -v '^#' config/srclist.txt|grep -v '^$$' \
@@ -68,6 +70,7 @@ update-copyright:
done > $$exempt; \
git ls-files tests/unictype >> $$exempt; \
git ls-files | grep -vFf $$exempt \
+ | xargs grep -L '^/\*.*GENERATED AUTOMATICALLY' \
| UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 \
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
xargs build-aux/update-copyright