]> xenbits.xensource.com Git - libvirt.git/commitdiff
maint: enforce recent copyright style
authorEric Blake <eblake@redhat.com>
Thu, 18 Mar 2010 17:25:01 +0000 (11:25 -0600)
committerJim Meyering <meyering@redhat.com>
Thu, 18 Mar 2010 20:20:32 +0000 (21:20 +0100)
* cfg.mk (sc_copyright_format): New rule.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 9fc2d668f3cce50218ca3a820133045588304c95..2d0d278e1492724e88ddc757aa3a7bcfb36d70fa 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -269,6 +269,15 @@ sc_preprocessor_indentation:
          echo '$(ME): skipping test $@: cppi not installed' 1>&2;      \
        fi
 
+sc_copyright_format:
+       @$(VC_LIST_EXCEPT) | xargs grep -ni 'copyright .*Red 'Hat       \
+         | grep -v Inc                                                 \
+         && { echo '$(ME): Red Hat copyright is missing Inc' 1>&2;     \
+              exit 1; } || :
+       @$(VC_LIST_EXCEPT) | xargs grep -ni 'copyright [^(].*Red 'Hat   \
+         && { echo '$(ME): consistently use (C) in Red Hat copyright' 1>&2; \
+              exit 1; } || :
+
 # We don't use this feature of maint.mk.
 prev_version_file = /dev/null