* cfg.mk (sc_prohibit_tab_based_indentation): New rule, from coreutils.
(sc_prohibit_emacs__indent_tabs_mode__setting): Likewise.
* bootstrap: Remove "indent-tabs-mode: nil" directive.
* .x-sc_prohibit_tab_based_indentation: New file.
--- /dev/null
+(^|/)(GNU)?[Mm]akefile
+(^|/)ChangeLog
+\.(am|mk)$
bootstrap_epilogue
echo "$0: done. Now you can run './configure'."
-
-# Local Variables:
-# indent-tabs-mode: nil
-# End:
update-copyright-env = \
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
+
+# Indent only with spaces.
+sc_prohibit_tab_based_indentation:
+ @re='^ * ' \
+ msg='TAB in indentation; use only spaces' \
+ $(_prohibit_regexp)
+
+# Don't use "indent-tabs-mode: nil" anymore. No longer needed.
+sc_prohibit_emacs__indent_tabs_mode__setting:
+ @re='^( *[*#] *)?indent-tabs-mode:' \
+ msg='use of emacs indent-tabs-mode: setting' \
+ $(_prohibit_regexp)