]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
maint: disallow TAB-in-indentation also in *.rng files
authorJim Meyering <meyering@redhat.com>
Mon, 1 Mar 2010 19:05:06 +0000 (20:05 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 1 Mar 2010 19:19:20 +0000 (20:19 +0100)
* cfg.mk (sc_TAB_in_indentation): Also check .rng files.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 8317ae2b16ce46929d2f56c12c97ee31f4bac2c2..680c31260658674714bd18c214418940005651ac 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -132,7 +132,7 @@ sc_prohibit_ctype_h:
 sc_TAB_in_indentation:
        @grep -lE '^ *  ' /dev/null                                     \
             $$($(VC_LIST_EXCEPT)                                       \
-               | grep -E '\.[ch](\.in)?$$'                             \
+               | grep -E '\.(rng|[ch](\.in)?)$$'                       \
                | grep -v '^gnulib/') &&                                \
          { echo '$(ME): found TAB(s) used for indentation in C sources;'\
              'use spaces' 1>&2; exit 1; } || :