diff options
author | Jim Meyering <meyering@redhat.com> | 2011-07-04 12:31:05 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-07-05 10:25:16 +0200 |
commit | 00a195984d09dcd5ac84866740d35ad322f2578b (patch) | |
tree | 18834b8a7e8e56a1445e9b7de0c1e85694339478 /Makefile | |
parent | 84fb438212273a62452a0eea47dc695e0c3c911f (diff) | |
download | gnulib-00a195984d09dcd5ac84866740d35ad322f2578b.tar.gz |
maint: indent with spaces, not TABs, and add a rule to check this
* tests/test-userspec.c: Indent with spaces, not TABs.
* tests/test-argp.c: Likewise.
* tests/test-c-stack2.sh: Likewise.
* tests/test-parse-duration.sh: Likewise
* m4/strtod.m4: Likewise.
* m4/alloca.m4: Likewise.
* m4/pselect.m4: Likewise.
* Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -32,6 +32,16 @@ sc_prefer_ac_check_funcs_once: in modules/ 1>&2; exit 1; } || : \ else :; fi +sc_prohibit_leading_TABs: + if test -d .git; then \ + url=FIXME; \ + git grep -l '^ * ' lib m4 tests \ + | grep -Ev '^m4/po\.m4|^lib/reg|Makefile|test-update-copyright' \ + | grep . \ + && { printf '*** %s\n' 'indent with spaces, not TABs;' \ + 1>&2; exit 1; } || : \ + else :; fi + sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT: if test -d .git; then \ url=http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/22874; \ |