1 # Customize maint.mk -*- makefile -*-
2 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Used in maint.mk's web-manual rule
18 manual_title = Core GNU utilities
20 # Use the direct link. This is guaranteed to work immediately, while
21 # it can take a while for the faster mirror links to become usable.
22 url_dir_list = http://ftp.gnu.org/gnu/$(PACKAGE)
24 # Tests not to run as part of "make distcheck".
25 local-checks-to-skip = \
26 sc_proper_name_utf8_requires_ICONV
28 # Tools used to bootstrap this package, used for "announcement".
29 bootstrap-tools = autoconf,automake,gnulib,bison
31 # Now that we have better tests, make this the default.
34 # Comparing tarball sizes compressed using different xz presets, we see that
35 # an -8e-compressed tarball is only 9KiB larger than the -9e-compressed one.
36 # Using -8e is preferred, since that lets the decompression process use half
37 # the memory (32MiB rather than 64MiB).
38 # $ for i in {7,8,9}{e,}; do \
39 # (n=$(xz -$i < coreutils-8.15*.tar|wc -c);echo $n $i) & done |sort -nr
48 old_NEWS_hash = a99128b9985b2e76bdcabf3e5d95ca1a
50 # Add an exemption for sc_makefile_at_at_check.
51 _makefile_at_at_check_exceptions = ' && !/^cu_install_program =/'
53 # Our help-version script is in a slightly different location.
54 _hv_file ?= $(srcdir)/tests/misc/help-version
56 # Ensure that the list of O_ symbols used to compute O_FULLBLOCK is complete.
57 dd = $(srcdir)/src/dd.c
60 @{ echo O_FULLBLOCK; echo O_NOCACHE; \
61 perl -nle '/^ +\| (O_\w*)$$/ and print $$1' $(dd); } | sort > $@.1
62 @{ echo O_NOFOLLOW; perl -nle '/{"[a-z]+",\s*(O_\w+)},/ and print $$1' \
63 $(dd); } | sort > $@.2
64 @diff -u $@.1 $@.2 || diff=1 || diff=; \
67 && { echo '$(ME): $(dd) has inconsistent O_ flag lists'>&2; \
70 # Ensure that dd's definition of LONGEST_SYMBOL stays in sync
71 # with the strings from the two affected variables.
72 dd_c = $(srcdir)/src/dd.c
74 ifneq ($(wildcard $(dd_c)),)
75 @len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c);\
76 sed -n '/flags\[\] =$$/,/^};/p' $(dd_c) ) \
77 |sed -n '/"/s/^[^"]*"\([^"]*\)".*/\1/p' \
78 | wc --max-line-length); \
79 max=$$(sed -n '/^#define LONGEST_SYMBOL /s///p' $(dd_c) \
80 |tr -d '"' | wc --max-line-length); \
81 if test "$$len" = "$$max"; then :; else \
82 echo 'dd.c: LONGEST_SYMBOL is not longest' 1>&2; \
87 # Many m4 macros names once began with 'jm_'.
88 # On 2004-04-13, they were all changed to start with gl_ instead.
89 # Make sure that none are inadvertently reintroduced.
91 @grep -nE 'jm_[A-Z]' \
92 $$($(VC_LIST) m4 |grep '\.m4$$'; echo /dev/null) && \
93 { echo '$(ME): do not use jm_ in m4 macro names' \
96 # Ensure that each root-requiring test is run via the "check-root" rule.
99 && grep check-root tests/Makefile.am>/dev/null 2>&1; then \
100 t1=sc-root.expected; t2=sc-root.actual; \
101 grep -nl '^ *require_root_$$' \
102 $$($(VC_LIST) tests) |sed s,tests/,, |sort > $$t1; \
103 sed -n '/^root_tests =[ ]*\\$$/,/[^\]$$/p' \
104 $(srcdir)/tests/Makefile.am \
105 | sed 's/^ *//;/^root_tests =/d' \
106 | tr -s '\012\\' ' ' | fmt -1 | sort > $$t2; \
107 diff -u $$t1 $$t2 || diff=1 || diff=; \
110 && { echo 'tests/Makefile.am: missing check-root action'>&2; \
114 # Create a list of regular expressions matching the names
115 # of files included from system.h. Exclude a couple.
117 @sed -n '/^# *include /s///p' $(srcdir)/src/system.h \
118 | grep -Ev 'sys/(param|file)\.h' \
119 | sed 's/ .*//;;s/^["<]/^# *include [<"]/;s/\.h[">]$$/\\.h[">]/' \
124 Exit () { set +e; (exit $$1); exit $$1; }; \
125 for sig in 1 2 3 13 15; do \
126 eval "trap 'Exit $$(expr $$sig + 128)' $$sig"; \
130 # Files in src/ should not include directly any of
131 # the headers already included via system.h.
132 sc_system_h_headers: .re-list
133 @if test -f $(srcdir)/src/system.h; then \
134 trap 'rc=$$?; rm -f .re-list; exit $$rc' 0; \
136 grep -nE -f .re-list \
137 $$($(VC_LIST_EXCEPT) | grep '^\($(srcdir)/\)\?src/') \
138 && { echo '$(ME): the above are already included via system.h'\
139 1>&2; exit 1; } || :; \
144 'solaris[^[:alnum:]]*2\.(7|8|9|[1-9][0-9])|sunos[^[:alnum:]][6-9]' \
145 $$($(VC_LIST_EXCEPT)) && \
146 { echo '$(ME): found misuse of Sun OS version numbers' 1>&2; \
149 # Ensure that the list of programs and author names is accurate.
150 # We need a UTF8 locale. If a lack of locale support or a missing
151 # translation inhibits printing of UTF-8 names, just skip this test.
152 au_dotdot = authors-dotdot
153 au_actual = authors-actual
154 sc_check-AUTHORS: $(all_programs)
155 @locale=en_US.UTF-8; \
156 LC_ALL=$$locale ./src/cat --version \
157 | grep ' Torbjorn ' > /dev/null \
158 && { echo "$@: skipping this check"; exit 0; }; \
159 rm -f $(au_actual) $(au_dotdot); \
160 for i in `ls $(all_programs) \
161 | sed -e 's,^src/,,' -e 's,$(EXEEXT)$$,,' \
163 | $(ASSORT) -u`; do \
164 test "$$i" = '[' && continue; \
166 if test "$$i" = install; then \
168 elif test "$$i" = test; then \
171 LC_ALL=$$locale ./src/$$exe --version \
172 | perl -0 -pi -e 's/,\n/, /gm' \
173 | sed -n -e '/Written by /{ s//'"$$i"': /;' \
174 -e 's/,* and /, /; s/\.$$//; p; }'; \
175 done > $(au_actual) && \
176 sed -n '/^[^ ][^ ]*:/p' $(srcdir)/AUTHORS > $(au_dotdot) \
177 && diff $(au_actual) $(au_dotdot) \
178 && rm -f $(au_actual) $(au_dotdot)
180 # Look for lines longer than 80 characters, except omit:
181 # - program-generated long lines in diff headers,
182 # - tests involving long checksum lines, and
183 # - the 'pr' test cases.
185 FILTER_LONG_LINES = \
186 /^[^:]*\.diff:[^:]*:@@ / d; \
187 \|^[^:]*tests/misc/sha[0-9]*sum.*\.pl[-:]| d; \
188 \|^[^:]*tests/pr/|{ \|^[^:]*tests/pr/pr-tests:| !d; };
190 @files=$$($(VC_LIST_EXCEPT)) \
191 halt='line(s) with more than $(LINE_LEN_MAX) characters; reindent'; \
192 for file in $$files; do \
193 expand $$file | grep -nE '^.{$(LINE_LEN_MAX)}.' | \
194 sed -e "s|^|$$file:|" -e '$(FILTER_LONG_LINES)'; \
195 done | grep . && { msg="$$halt" $(_sc_say_and_exit) } || :
197 # Option descriptions should not start with a capital letter.
198 # One could grep source directly as follows:
199 # grep -E " {2,6}-.*[^.] [A-Z][a-z]" $$($(VC_LIST_EXCEPT) | grep '\.c$$')
200 # but that would miss descriptions not on the same line as the -option.
201 sc_option_desc_uppercase: $(ALL_MANS)
202 @grep '^\\fB\\-' -A1 man/*.1 | LC_ALL=C grep '\.1.[A-Z][a-z]' \
203 && { echo 1>&2 '$@: found initial capitals in --help'; exit 1; } || :
205 # Ensure all man/*.[1x] files are present.
206 sc_man_file_correlation: check-x-vs-1 check-programs-vs-x
208 # Ensure that for each .x file in the 'man/' subdirectory, there is a
209 # corresponding .1 file in the definition of $(EXTRA_MANS).
210 # But since that expansion usually lacks programs like arch and hostname,
211 # add them here manually.
214 @PATH=./src$(PATH_SEPARATOR)$$PATH; export PATH; \
216 (cd $(srcdir)/man && ls -1 *.x) \
217 | sed 's/\.x$$//' | $(ASSORT) > $$t; \
218 (echo $(patsubst man/%,%,$(ALL_MANS)) \
219 | tr -s ' ' '\n' | sed 's/\.1$$//') \
220 | $(ASSORT) -u | diff - $$t || { rm $$t; exit 1; }; \
223 # Writing a portable rule to generate a manpage like '[.1' would be
224 # a nightmare, so filter that out.
225 all-progs-but-lbracket = $(filter-out [,$(patsubst src/%,%,$(all_programs)))
227 # Ensure that for each coreutils program there is a corresponding
228 # '.x' file in the 'man/' subdirectory.
229 .PHONY: check-programs-vs-x
232 for p in dummy $(all-progs-but-lbracket); do \
233 case $$p in *.so) continue;; esac; \
234 test $$p = dummy && continue; \
235 test $$p = ginstall && p=install || : ; \
236 test -f $(srcdir)/man/$$p.x \
237 || { echo missing $$p.x 1>&2; status=1; }; \
241 # Ensure that the end of each release's section is marked by two empty lines.
242 sc_NEWS_two_empty_lines:
243 @sed -n 4,/Noteworthy/p $(srcdir)/NEWS \
244 | perl -n0e '/(^|\n)\n\n\* Noteworthy/ or exit 1' \
245 || { echo '$(ME): use two empty lines to separate NEWS sections' \
248 # Perl-based tests used to exec perl from a #!/bin/sh script.
249 # Now they all start with #!/usr/bin/perl and the portability
250 # infrastructure is in tests/Makefile.am. Make sure no old-style
251 # script sneaks back in.
252 sc_no_exec_perl_coreutils:
253 @if test -f $(srcdir)/tests/Coreutils.pm; then \
254 grep '^exec *\$$PERL.*MCoreutils' $$($(VC_LIST) tests) && \
255 { echo 1>&2 '$(ME): found anachronistic Perl-based tests'; \
259 # With split lines, don't leave an operator at end of line.
260 # Instead, put it on the following line, where it is more apparent.
261 # Don't bother checking for "*" at end of line, since it provokes
262 # far too many false positives, matching constructs like "TYPE *".
263 # Similarly, omit "=" (initializers).
264 binop_re_ ?= [-/+^!<>]|[-/+*^!<>=]=|&&?|\|\|?|<<=?|>>=?
265 sc_prohibit_operator_at_end_of_line:
266 @prohibit='. ($(binop_re_))$$' \
267 in_vc_files='\.[chly]$$' \
268 halt='found operator at end of line' \
271 # Don't use "readlink" or "readlinkat" directly
272 sc_prohibit_readlink:
273 @prohibit='\<readlink(at)? \(' \
274 halt='do not use readlink(at); use via xreadlink or areadlink*' \
277 # Don't use address of "stat" or "lstat" functions
278 sc_prohibit_stat_macro_address:
279 @prohibit='\<l?stat '':|&l?stat\>' \
280 halt='stat() and lstat() may be function-like macros' \
283 # Ensure that date's --help output stays in sync with the info
284 # documentation for GNU strftime. The only exception is %N,
285 # which date accepts but GNU strftime does not.
286 extract_char = sed 's/^[^%][^%]*%\(.\).*/\1/'
288 @if test -f $(srcdir)/src/date.c; then \
289 grep '^ %. ' $(srcdir)/src/date.c | sort \
290 | $(extract_char) > $@-src; \
292 info libc date calendar format 2>/dev/null|grep '^ `%.'\'\
293 | $(extract_char); } | sort > $@-info; \
294 if test $$(stat --format %s $@-info) != 2; then \
295 diff -u $@-src $@-info || exit 1; \
297 echo '$(ME): skipping $@: libc info not installed' 1>&2; \
299 rm -f $@-src $@-info; \
302 # Indent only with spaces.
303 sc_prohibit_tab_based_indentation:
305 halt='TAB in indentation; use only spaces' \
308 # The SEE ALSO section of a man page should not be terminated with
309 # a period. Check the first line after each "SEE ALSO" line in man/*.x:
310 sc_prohibit_man_see_also_period:
311 @grep -nB1 '\.$$' $$($(VC_LIST_EXCEPT) | grep 'man/.*\.x$$') \
312 | grep -A1 -e '-\[SEE ALSO\]' | grep '\.$$' && \
313 { echo '$(ME): do not end "SEE ALSO" section with a period' \
316 # Don't use "indent-tabs-mode: nil" anymore. No longer needed.
317 sc_prohibit_emacs__indent_tabs_mode__setting:
318 @prohibit='^( *[*#] *)?indent-tabs-mode:' \
319 halt='use of emacs indent-tabs-mode: setting' \
322 # Ensure that tests don't include a redundant fail=0.
324 @prohibit='\<fail=0\>' \
325 halt='fail=0 initialization' \
328 # The mode part of a setfacl -m option argument must be three bytes long.
329 # I.e., an argument of user:bin:rw or user:bin:r will make Solaris 10's
330 # setfacl reject it with: "Unrecognized character found in mode field".
331 # Use hyphens to give it a length of 3: "...:rw-" or "...:r--".
332 sc_prohibit_short_facl_mode_spec:
333 @prohibit='\<setfacl .*-m.*:.*:[rwx-]{1,2} ' \
334 halt='setfacl mode string length < 3; extend with hyphen(s)' \
337 # Ensure that "stdio--.h" is used where appropriate.
338 sc_require_stdio_safer:
339 @if $(VC_LIST_EXCEPT) | grep -l '\.[ch]$$' > /dev/null; then \
340 files=$$(grep -l '\bfreopen \?(' $$($(VC_LIST_EXCEPT) \
341 | grep '\.[ch]$$')); \
342 test -n "$$files" && grep -LE 'include "stdio--.h"' $$files \
344 { echo '$(ME): the above files should use "stdio--.h"' \
345 1>&2; exit 1; } || :; \
349 sc_prohibit_perl_hash_quotes:
350 @prohibit="\{'[A-Z_]+' *[=}]" \
351 halt="in Perl code, write \$$hash{KEY}, not \$$hash{'K''EY'}" \
354 # Prefer xnanosleep over other less-precise sleep methods
356 @prohibit='\<(nano|u)?sleep \(' \
357 halt='prefer xnanosleep over other sleep interfaces' \
360 # Use print_ver_ (from init.cfg), not open-coded $VERBOSE check.
361 sc_prohibit_verbose_version:
362 @prohibit='test "\$$VERBOSE" = yes && .* --version' \
363 halt='use the print_ver_ function instead...' \
366 # Use framework_failure_, not the old name without the trailing underscore.
367 sc_prohibit_framework_failure:
368 @prohibit='\<framework_''failure\>' \
369 halt='use framework_failure_ instead' \
372 # Prohibit the use of `...` in tests/. Use $(...) instead.
373 sc_prohibit_test_backticks:
374 @prohibit='`' in_vc_files='^tests/' \
375 halt='use $$(...), not `...` in tests/' \
378 # Programs like sort, ls, expr use PROG_FAILURE in place of EXIT_FAILURE.
379 # Others, use the EXIT_CANCELED, EXIT_ENOENT, etc. macros defined in system.h.
380 # In those programs, ensure that EXIT_FAILURE is not used by mistake.
381 sc_some_programs_must_avoid_exit_failure:
382 @grep -nw EXIT_FAILURE \
383 $$(git grep -El '[^T]_FAILURE|EXIT_CANCELED' src) \
384 | grep -vE '= EXIT_FAILURE|exit \(.* \?' | grep . \
385 && { echo '$(ME): do not use EXIT_FAILURE in the above' \
388 # Ensure that tests call the print_ver_ function for programs which are
389 # actually used in that test.
390 sc_prohibit_test_calls_print_ver_with_irrelevant_argument:
391 @git grep -w print_ver_ tests \
392 | sed 's#:print_ver_##' \
394 while read file name; do \
395 for i in $$name; do \
396 case "$$i" in install) i=ginstall;; esac; \
397 grep -w "$$i" $$file|grep -vw print_ver_|grep -q . \
399 echo "*** Test: $$file, offending: $$i." 1>&2; };\
402 test $$fail = 0 || exit 1; \
403 } || { echo "$(ME): the above test(s) call print_ver_ for" \
404 "program(s) they don't use" 1>&2; exit 1; }
406 # Exempt the contents of any usage function from the following.
407 _continued_string_col_1 = \
408 s/^usage .*?\n}//ms;/\\\n\w/ and print ("$$ARGV\n"),$$e=1;END{$$e||=0;exit $$e}
409 # Ding any source file that has a continued string with an alphabetic in the
410 # first column of the following line. We prohibit them because they usually
411 # trigger false positives in tools that try to map an arbitrary line number
412 # to the enclosing function name. Of course, very many strings do precisely
413 # this, *when they are part of the usage function*. That is why we exempt
414 # the contents of any function named "usage".
415 sc_prohibit_continued_string_alpha_in_column_1:
416 @perl -0777 -ne '$(_continued_string_col_1)' \
417 $$($(VC_LIST_EXCEPT) | grep '\.[ch]$$') \
418 || { echo '$(ME): continued string with word in first column' \
420 # Use this to list offending lines:
421 # git ls-files |grep '\.[ch]$' | xargs \
422 # perl -n -0777 -e 's/^usage.*?\n}//ms;/\\\n\w/ and print "$ARGV\n"' \
423 # | xargs grep -A1 '\\$'|grep '\.[ch][:-][_a-zA-Z]'
426 ###########################################################
427 _p0 = \([^"'/]\|"\([^\"]\|[\].\)*"\|'\([^\']\|[\].\)*'
428 _pre = $(_p0)\|[/][^"'/*]\|[/]"\([^\"]\|[\].\)*"\|[/]'\([^\']\|[\].\)*'\)*
429 _pre_anchored = ^\($(_pre)\)
430 _comment_and_close = [^*]\|[*][^/*]\)*[*][*]*/
431 # help font-lock mode: '
433 # A sed expression that removes ANSI C and ISO C99 comments.
434 # Derived from the one in GNU gettext's 'moopp' preprocessor.
435 _sed_remove_comments = \
439 s,$(_pre_anchored)//.*,\1,; \
441 s,$(_pre_anchored)/[*]\($(_comment_and_close),\1 ,; \
444 s,$(_pre_anchored)/[*].*,\1 ,; \
448 s,^\($(_comment_and_close),,; \
456 # Quote all single quotes.
457 _sed_rm_comments_q = $(subst ','\'',$(_sed_remove_comments))
458 # help font-lock mode: '
460 _space_before_paren_exempt =? \\n\\$$
461 _space_before_paren_exempt = \
462 (^ *\#|\\n\\$$|%s\(to %s|(date|group|character)\(s\))
463 # Ensure that there is a space before each open parenthesis in C code.
464 sc_space_before_open_paren:
465 @if $(VC_LIST_EXCEPT) | grep -l '\.[ch]$$' > /dev/null; then \
467 for c in $$($(VC_LIST_EXCEPT) | grep '\.[ch]$$'); do \
468 sed '$(_sed_rm_comments_q)' $$c 2>/dev/null \
469 | grep -i '[[:alnum:]](' \
470 | grep -vE '$(_space_before_paren_exempt)' \
471 | grep . && { fail=1; echo "*** $$c"; }; \
474 { echo '$(ME): the above files lack a space-before-open-paren' \
475 1>&2; exit 1; } || :; \
479 # Similar to the gnulib maint.mk rule for sc_prohibit_strcmp
480 # Use STREQ_LEN or STRPREFIX rather than comparing strncmp == 0, or != 0.
482 @grep -nE '! *str''ncmp *\(|\<str''ncmp *\(.+\) *[!=]=' \
483 $$($(VC_LIST_EXCEPT)) \
484 | grep -vE ':# *define STR(N?EQ_LEN|PREFIX)\(' && \
485 { echo '$(ME): use STREQ_LEN or STRPREFIX instead of str''ncmp' \
488 # Enforce recommended preprocessor indentation style.
489 sc_preprocessor_indentation:
490 @if cppi --version >/dev/null 2>&1; then \
491 $(VC_LIST_EXCEPT) | grep '\.[ch]$$' | xargs cppi -a -c \
492 || { echo '$(ME): incorrect preprocessor indentation' 1>&2; \
495 echo '$(ME): skipping test $@: cppi not installed' 1>&2; \
498 # THANKS.in is a list of name/email pairs for people who are mentioned in
499 # commit logs (and generated ChangeLog), but who are not also listed as an
500 # author of a commit. Name/email pairs of commit authors are automatically
501 # extracted from the repository. As a very minor factorization, when
502 # someone who was initially listed only in THANKS.in later authors a commit,
503 # this rule detects that their pair may now be removed from THANKS.in.
504 sc_THANKS_in_duplicates:
505 @{ git log --pretty=format:%aN | sort -u; \
506 cut -b-36 THANKS.in | sed '/^$$/d;s/ *$$//'; } \
507 | sort | uniq -d | grep . \
508 && { echo '$(ME): remove the above names from THANKS.in' \
511 # Override the default Cc: used in generating an announcement.
512 announcement_Cc_ = $(translation_project_), \
513 coreutils@gnu.org, coreutils-announce@gnu.org
515 -include $(srcdir)/dist-check.mk
517 update-copyright-env = \
518 UPDATE_COPYRIGHT_FORCE=1 \
519 UPDATE_COPYRIGHT_USE_INTERVALS=2 \
520 UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
522 # List syntax-check exemptions.
523 exclude_file_name_regexp--sc_space_tab = \
524 ^(tests/pr/|tests/misc/nl\.sh$$|gl/.*\.diff$$)
525 exclude_file_name_regexp--sc_bindtextdomain = ^(gl/.*|lib/euidaccess-stat)\.c$$
526 exclude_file_name_regexp--sc_trailing_blank = ^tests/pr/
527 exclude_file_name_regexp--sc_system_h_headers = \
528 ^src/((system|copy)\.h|libstdbuf\.c)$$
530 _src = (false|lbracket|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname))
531 exclude_file_name_regexp--sc_require_config_h_first = \
532 (^lib/buffer-lcm\.c|src/$(_src)\.c)$$
533 exclude_file_name_regexp--sc_require_config_h = \
534 $(exclude_file_name_regexp--sc_require_config_h_first)
536 exclude_file_name_regexp--sc_po_check = ^gl/
537 exclude_file_name_regexp--sc_prohibit_always-defined_macros = \
538 ^src/(seq|remove)\.c$$
539 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^tests/pr/
540 exclude_file_name_regexp--sc_program_name = ^(gl/.*|lib/euidaccess-stat)\.c$$
541 exclude_file_name_regexp--sc_file_system = \
542 NEWS|^(tests/init\.cfg|src/df\.c|tests/df/df-P\.sh)$$
543 exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \
545 exclude_file_name_regexp--sc_prohibit_fail_0 = \
546 (^.*/git-hooks/commit-msg|^tests/init\.sh|Makefile\.am|\.mk|.*\.texi)$$
547 exclude_file_name_regexp--sc_prohibit_atoi_atof = ^lib/euidaccess-stat\.c$$
549 tbi_1 = ^tests/pr/|(^gl/lib/reg.*\.c\.diff|Makefile(\.am)?|\.mk|^man/help2man)$$
550 tbi_2 = ^scripts/git-hooks/(pre-commit|pre-applypatch|applypatch-msg)$$
551 exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \
554 exclude_file_name_regexp--sc_preprocessor_indentation = \
555 ^(gl/lib/rand-isaac\.[ch]|gl/tests/test-rand-isaac\.c)$$
556 exclude_file_name_regexp--sc_prohibit_stat_st_blocks = \
557 ^(src/system\.h|tests/du/2g\.sh)$$
559 exclude_file_name_regexp--sc_prohibit_continued_string_alpha_in_column_1 = \
560 ^src/(system\.h|od\.c|printf\.c)$$
562 exclude_file_name_regexp--sc_prohibit_test_backticks = \
563 ^tests/(init\.sh|Makefile\.am|misc/stdbuf\.sh)$$
565 # Exempt test.c, since it's nominally shared, and relatively static.
566 exclude_file_name_regexp--sc_prohibit_operator_at_end_of_line = \
567 ^src/(ptx|test|head)\.c$$