summaryrefslogtreecommitdiffstats
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-03 10:55:34 -0400
committerJim Meyering <meyering@redhat.com>2009-08-03 18:05:17 +0200
commit4c2c2793bad56ce05caf6244e10fd5bcd7023383 (patch)
treed0de866a7f232fa6f9227af4ffec6285457665d3 /cfg.mk
parent2f1a50d81671810256dce0852e6b1e0810ac44af (diff)
downloadlibguestfs-4c2c2793bad56ce05caf6244e10fd5bcd7023383.tar.gz
libguestfs-4c2c2793bad56ce05caf6244e10fd5bcd7023383.tar.xz
libguestfs-4c2c2793bad56ce05caf6244e10fd5bcd7023383.zip
Document and enforce the new spaces-only indentation policy.
* cfg.mk (disable_temporarily): Remove sc_TAB_in_indentation, to enable the "make syntax-check" that enforces this. * .x-sc_TAB_in_indentation: New file. Exceptions. * HACKING: Document the policy, with tips on how to conform.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/cfg.mk b/cfg.mk
index e92c34f7..7130cea5 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -65,7 +65,6 @@ local-checks-to-skip = \
disable_temporarily = \
sc_makefile_TAB_only_indentation \
sc_unmarked_diagnostics \
- sc_TAB_in_indentation \
sc_prohibit_ctype_h \
sc_prohibit_asprintf \
sc_m4_quote_check \
@@ -107,10 +106,10 @@ sc_prohibit_ctype_h:
1>&2; exit 1; } || :
# Ensure that no C source file uses TABs for indentation.
+# Exclude some version-controlled symlinks.
sc_TAB_in_indentation:
@grep -lE '^ * ' /dev/null \
- $$($(VC_LIST_EXCEPT) \
- | grep -E '\.[ch](\.in)?$$') && \
+ $$($(VC_LIST_EXCEPT)) && \
{ echo '$(ME): found TAB(s) used for indentation in C sources;'\
'use spaces' 1>&2; exit 1; } || :