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 =
27 # Tools used to bootstrap this package, used for "announcement".
28 bootstrap-tools = autoconf,automake,gnulib,bison
30 # Now that we have better tests, make this the default.
33 # Comparing tarball sizes compressed using different xz presets, we see that
34 # an -8e-compressed tarball is only 9KiB larger than the -9e-compressed one.
35 # Using -8e is preferred, since that lets the decompression process use half
36 # the memory (32MiB rather than 64MiB).
37 # $ for i in {7,8,9}{e,}; do \
38 # (n=$(xz -$i < coreutils-8.15*.tar|wc -c);echo $n $i) & done |sort -nr
47 old_NEWS_hash = a99128b9985b2e76bdcabf3e5d95ca1a
49 # Add an exemption for sc_makefile_at_at_check.
50 _makefile_at_at_check_exceptions = ' && !/^cu_install_program =/'
52 # Our help-version script is in a slightly different location.
53 _hv_file ?= $(srcdir)/tests/misc/help-version
55 # Ensure that the list of O_ symbols used to compute O_FULLBLOCK is complete.
56 dd = $(srcdir)/src/dd.c
59 @{ echo O_FULLBLOCK; echo O_NOCACHE; \
60 perl -nle '/^ +\| (O_\w*)$$/ and print $$1' $(dd); } | sort > $@.1
61 @{ echo O_NOFOLLOW; perl -nle '/{"[a-z]+",\s*(O_\w+)},/ and print $$1' \
62 $(dd); } | sort > $@.2
63 @diff -u $@.1 $@.2 || diff=1 || diff=; \
66 && { echo '$(ME): $(dd) has inconsistent O_ flag lists'>&2; \
69 # Ensure that dd's definition of LONGEST_SYMBOL stays in sync
70 # with the strings from the two affected variables.
71 dd_c = $(srcdir)/src/dd.c
73 ifneq ($(wildcard $(dd_c)),)
74 @len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c);\
75 sed -n '/flags\[\] =$$/,/^};/p' $(dd_c) ) \
76 |sed -n '/"/s/^[^"]*"\([^"]*\)".*/\1/p' \
77 | wc --max-line-length); \
78 max=$$(sed -n '/^#define LONGEST_SYMBOL /s///p' $(dd_c) \
79 |tr -d '"' | wc --max-line-length); \
80 if test "$$len" = "$$max"; then :; else \
81 echo 'dd.c: LONGEST_SYMBOL is not longest' 1>&2; \
86 # Many m4 macros names once began with 'jm_'.
87 # On 2004-04-13, they were all changed to start with gl_ instead.
88 # Make sure that none are inadvertently reintroduced.
90 @grep -nE 'jm_[A-Z]' \
91 $$($(VC_LIST) m4 |grep '\.m4$$'; echo /dev/null) && \
92 { echo '$(ME): do not use jm_ in m4 macro names' \
95 # Ensure that each root-requiring test is run via the "check-root" rule.
98 && grep check-root tests/Makefile.am>/dev/null 2>&1; then \
99 t1=sc-root.expected; t2=sc-root.actual; \
100 grep -nl '^ *require_root_$$' \
101 $$($(VC_LIST) tests) |sed s,tests/,, |sort > $$t1; \
102 sed -n '/^root_tests =[ ]*\\$$/,/[^\]$$/p' \
103 $(srcdir)/tests/Makefile.am \
104 | sed 's/^ *//;/^root_tests =/d' \
105 | tr -s '\012\\' ' ' | fmt -1 | sort > $$t2; \
106 diff -u $$t1 $$t2 || diff=1 || diff=; \
109 && { echo 'tests/Makefile.am: missing check-root action'>&2; \
113 # Create a list of regular expressions matching the names
114 # of files included from system.h. Exclude a couple.
116 @sed -n '/^# *include /s///p' $(srcdir)/src/system.h \
117 | grep -Ev 'sys/(param|file)\.h' \
118 | sed 's/ .*//;;s/^["<]/^# *include [<"]/;s/\.h[">]$$/\\.h[">]/' \
123 Exit () { set +e; (exit $$1); exit $$1; }; \
124 for sig in 1 2 3 13 15; do \
125 eval "trap 'Exit $$(expr $$sig + 128)' $$sig"; \
129 # Files in src/ should not include directly any of
130 # the headers already included via system.h.
131 sc_system_h_headers: .re-list
132 @if test -f $(srcdir)/src/system.h; then \
133 trap 'rc=$$?; rm -f .re-list; exit $$rc' 0; \
135 grep -nE -f .re-list \
136 $$($(VC_LIST_EXCEPT) | grep '^\($(srcdir)/\)\?src/') \
137 && { echo '$(ME): the above are already included via system.h'\
138 1>&2; exit 1; } || :; \
143 'solaris[^[:alnum:]]*2\.(7|8|9|[1-9][0-9])|sunos[^[:alnum:]][6-9]' \
144 $$($(VC_LIST_EXCEPT)) && \
145 { 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:
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; } || :
204 sc_option_desc_uppercase: $(dist_man1_MANS) \
205 $(patsubst %,man/%.1,$(NO_INSTALL_PROGS_DEFAULT))
207 # Ensure all man/*.[1x] files are present.
208 sc_man_file_correlation: check-x-vs-1 check-programs-vs-x
210 # Ensure that for each .x file in the 'man/' subdirectory, there is a
211 # corresponding .1 file in the definition of $(dist_man1_MANS).
212 # But since that expansion usually lacks programs like arch and hostname,
213 # add them here manually.
216 @PATH=./src$(PATH_SEPARATOR)$$PATH; export PATH; \
218 (cd $(srcdir)/man && ls -1 *.x) \
219 | sed 's/\.x$$//' | $(ASSORT) > $$t; \
220 (echo $(patsubst man/%,%,$(dist_man1_MANS)) \
221 $(NO_INSTALL_PROGS_DEFAULT) \
222 | tr -s ' ' '\n' | sed 's/\.1$$//') \
223 | $(ASSORT) -u | diff - $$t || { rm $$t; exit 1; }; \
226 # Writing a portable rule to generate a manpage like '[.1' would be
227 # a nightmare, so filter that out.
228 all-progs-but-lbracket = $(filter-out [,$(patsubst src/%,%,$(all_programs)))
230 # Ensure that for each coreutils program there is a corresponding
231 # '.x' file in the 'man/' subdirectory.
232 .PHONY: check-programs-vs-x
235 for p in dummy $(all-progs-but-lbracket); do \
236 test $$p = dummy && continue; \
237 test $$p = ginstall && p=install || : ; \
238 test -f $(srcdir)/man/$$p.x \
239 || { echo missing $$p.x 1>&2; status=1; }; \
243 # Ensure that the end of each release's section is marked by two empty lines.
244 sc_NEWS_two_empty_lines:
245 @sed -n 4,/Noteworthy/p $(srcdir)/NEWS \
246 | perl -n0e '/(^|\n)\n\n\* Noteworthy/ or exit 1' \
247 || { echo '$(ME): use two empty lines to separate NEWS sections' \
250 # Perl-based tests used to exec perl from a #!/bin/sh script.
251 # Now they all start with #!/usr/bin/perl and the portability
252 # infrastructure is in tests/Makefile.am. Make sure no old-style
253 # script sneaks back in.
254 sc_no_exec_perl_coreutils:
255 @if test -f $(srcdir)/tests/Coreutils.pm; then \
256 grep '^exec *\$$PERL.*MCoreutils' $$($(VC_LIST) tests) && \
257 { echo 1>&2 '$(ME): found anachronistic Perl-based tests'; \
261 # With split lines, don't leave an operator at end of line.
262 # Instead, put it on the following line, where it is more apparent.
263 # Don't bother checking for "*" at end of line, since it provokes
264 # far too many false positives, matching constructs like "TYPE *".
265 # Similarly, omit "=" (initializers).
266 binop_re_ ?= [-/+^!<>]|[-/+*^!<>=]=|&&?|\|\|?|<<=?|>>=?
267 sc_prohibit_operator_at_end_of_line:
268 @prohibit='. ($(binop_re_))$$' \
269 in_vc_files='\.[chly]$$' \
270 halt='found operator at end of line' \
273 # Don't use "readlink" or "readlinkat" directly
274 sc_prohibit_readlink:
275 @prohibit='\<readlink(at)? \(' \
276 halt='do not use readlink(at); use via xreadlink or areadlink*' \
279 # Don't use address of "stat" or "lstat" functions
280 sc_prohibit_stat_macro_address:
281 @prohibit='\<l?stat '':|&l?stat\>' \
282 halt='stat() and lstat() may be function-like macros' \
285 # Ensure that date's --help output stays in sync with the info
286 # documentation for GNU strftime. The only exception is %N,
287 # which date accepts but GNU strftime does not.
288 extract_char = sed 's/^[^%][^%]*%\(.\).*/\1/'
290 @if test -f $(srcdir)/src/date.c; then \
291 grep '^ %. ' $(srcdir)/src/date.c | sort \
292 | $(extract_char) > $@-src; \
294 info libc date calendar format 2>/dev/null|grep '^ `%.'\'\
295 | $(extract_char); } | sort > $@-info; \
296 if test $$(stat --format %s $@-info) != 2; then \
297 diff -u $@-src $@-info || exit 1; \
299 echo '$(ME): skipping $@: libc info not installed' 1>&2; \
301 rm -f $@-src $@-info; \
304 # Indent only with spaces.
305 sc_prohibit_tab_based_indentation:
307 halt='TAB in indentation; use only spaces' \
310 # The SEE ALSO section of a man page should not be terminated with
311 # a period. Check the first line after each "SEE ALSO" line in man/*.x:
312 sc_prohibit_man_see_also_period:
313 @grep -nB1 '\.$$' $$($(VC_LIST_EXCEPT) | grep 'man/.*\.x$$') \
314 | grep -A1 -e '-\[SEE ALSO\]' | grep '\.$$' && \
315 { echo '$(ME): do not end "SEE ALSO" section with a period' \
318 # Don't use "indent-tabs-mode: nil" anymore. No longer needed.
319 sc_prohibit_emacs__indent_tabs_mode__setting:
320 @prohibit='^( *[*#] *)?indent-tabs-mode:' \
321 halt='use of emacs indent-tabs-mode: setting' \
324 # Ensure that tests don't include a redundant fail=0.
326 @prohibit='\<fail=0\>' \
327 halt='fail=0 initialization' \
330 # The mode part of a setfacl -m option argument must be three bytes long.
331 # I.e., an argument of user:bin:rw or user:bin:r will make Solaris 10's
332 # setfacl reject it with: "Unrecognized character found in mode field".
333 # Use hyphens to give it a length of 3: "...:rw-" or "...:r--".
334 sc_prohibit_short_facl_mode_spec:
335 @prohibit='\<setfacl .*-m.*:.*:[rwx-]{1,2} ' \
336 halt='setfacl mode string length < 3; extend with hyphen(s)' \
339 # Ensure that "stdio--.h" is used where appropriate.
340 sc_require_stdio_safer:
341 @if $(VC_LIST_EXCEPT) | grep -l '\.[ch]$$' > /dev/null; then \
342 files=$$(grep -l '\bfreopen \?(' $$($(VC_LIST_EXCEPT) \
343 | grep '\.[ch]$$')); \
344 test -n "$$files" && grep -LE 'include "stdio--.h"' $$files \
346 { echo '$(ME): the above files should use "stdio--.h"' \
347 1>&2; exit 1; } || :; \
351 sc_prohibit_perl_hash_quotes:
352 @prohibit="\{'[A-Z_]+' *[=}]" \
353 halt="in Perl code, write \$$hash{KEY}, not \$$hash{'K''EY'}" \
356 # Prefer xnanosleep over other less-precise sleep methods
358 @prohibit='\<(nano|u)?sleep \(' \
359 halt='prefer xnanosleep over other sleep interfaces' \
362 # Use print_ver_ (from init.cfg), not open-coded $VERBOSE check.
363 sc_prohibit_verbose_version:
364 @prohibit='test "\$$VERBOSE" = yes && .* --version' \
365 halt='use the print_ver_ function instead...' \
368 # Use framework_failure_, not the old name without the trailing underscore.
369 sc_prohibit_framework_failure:
370 @prohibit='\<framework_''failure\>' \
371 halt='use framework_failure_ instead' \
374 # Prohibit the use of `...` in tests/. Use $(...) instead.
375 sc_prohibit_test_backticks:
376 @prohibit='`' in_vc_files='^tests/' \
377 halt='use $$(...), not `...` in tests/' \
380 # Programs like sort, ls, expr use PROG_FAILURE in place of EXIT_FAILURE.
381 # Others, use the EXIT_CANCELED, EXIT_ENOENT, etc. macros defined in system.h.
382 # In those programs, ensure that EXIT_FAILURE is not used by mistake.
383 sc_some_programs_must_avoid_exit_failure:
384 @grep -nw EXIT_FAILURE \
385 $$(git grep -El '[^T]_FAILURE|EXIT_CANCELED' src) \
386 | grep -vE '= EXIT_FAILURE|exit \(.* \?' | grep . \
387 && { echo '$(ME): do not use EXIT_FAILURE in the above' \
390 # Ensure that tests call the print_ver_ function for programs which are
391 # actually used in that test.
392 sc_prohibit_test_calls_print_ver_with_irrelevant_argument:
393 @git grep -w print_ver_ tests \
394 | sed 's#:print_ver_##' \
396 while read file name; do \
397 for i in $$name; do \
398 case "$$i" in install) i=ginstall;; esac; \
399 grep -w "$$i" $$file|grep -vw print_ver_|grep -q . \
401 echo "*** Test: $$file, offending: $$i." 1>&2; };\
404 test $$fail = 0 || exit 1; \
405 } || { echo "$(ME): the above test(s) call print_ver_ for" \
406 "program(s) they don't use" 1>&2; exit 1; }
408 # Exempt the contents of any usage function from the following.
409 _continued_string_col_1 = \
410 s/^usage .*?\n}//ms;/\\\n\w/ and print ("$$ARGV\n"),$$e=1;END{$$e||=0;exit $$e}
411 # Ding any source file that has a continued string with an alphabetic in the
412 # first column of the following line. We prohibit them because they usually
413 # trigger false positives in tools that try to map an arbitrary line number
414 # to the enclosing function name. Of course, very many strings do precisely
415 # this, *when they are part of the usage function*. That is why we exempt
416 # the contents of any function named "usage".
417 sc_prohibit_continued_string_alpha_in_column_1:
418 @perl -0777 -ne '$(_continued_string_col_1)' \
419 $$($(VC_LIST_EXCEPT) | grep '\.[ch]$$') \
420 || { echo '$(ME): continued string with word in first column' \
422 # Use this to list offending lines:
423 # git ls-files |grep '\.[ch]$' | xargs \
424 # perl -n -0777 -e 's/^usage.*?\n}//ms;/\\\n\w/ and print "$ARGV\n"' \
425 # | xargs grep -A1 '\\$'|grep '\.[ch][:-][_a-zA-Z]'
428 ###########################################################
429 _p0 = \([^"'/]\|"\([^\"]\|[\].\)*"\|'\([^\']\|[\].\)*'
430 _pre = $(_p0)\|[/][^"'/*]\|[/]"\([^\"]\|[\].\)*"\|[/]'\([^\']\|[\].\)*'\)*
431 _pre_anchored = ^\($(_pre)\)
432 _comment_and_close = [^*]\|[*][^/*]\)*[*][*]*/
433 # help font-lock mode: '
435 # A sed expression that removes ANSI C and ISO C99 comments.
436 # Derived from the one in GNU gettext's 'moopp' preprocessor.
437 _sed_remove_comments = \
441 s,$(_pre_anchored)//.*,\1,; \
443 s,$(_pre_anchored)/[*]\($(_comment_and_close),\1 ,; \
446 s,$(_pre_anchored)/[*].*,\1 ,; \
450 s,^\($(_comment_and_close),,; \
458 # Quote all single quotes.
459 _sed_rm_comments_q = $(subst ','\'',$(_sed_remove_comments))
460 # help font-lock mode: '
462 _space_before_paren_exempt =? \\n\\$$
463 _space_before_paren_exempt = \
464 (^ *\#|\\n\\$$|%s\(to %s|(date|group|character)\(s\))
465 # Ensure that there is a space before each open parenthesis in C code.
466 sc_space_before_open_paren:
467 @if $(VC_LIST_EXCEPT) | grep -l '\.[ch]$$' > /dev/null; then \
469 for c in $$($(VC_LIST_EXCEPT) | grep '\.[ch]$$'); do \
470 sed '$(_sed_rm_comments_q)' $$c 2>/dev/null \
471 | grep -i '[[:alnum:]](' \
472 | grep -vE '$(_space_before_paren_exempt)' \
473 | grep . && { fail=1; echo "*** $$c"; }; \
476 { echo '$(ME): the above files lack a space-before-open-paren' \
477 1>&2; exit 1; } || :; \
481 # Similar to the gnulib maint.mk rule for sc_prohibit_strcmp
482 # Use STREQ_LEN or STRPREFIX rather than comparing strncmp == 0, or != 0.
484 @grep -nE '! *str''ncmp *\(|\<str''ncmp *\(.+\) *[!=]=' \
485 $$($(VC_LIST_EXCEPT)) \
486 | grep -vE ':# *define STR(N?EQ_LEN|PREFIX)\(' && \
487 { echo '$(ME): use STREQ_LEN or STRPREFIX instead of str''ncmp' \
490 # Enforce recommended preprocessor indentation style.
491 sc_preprocessor_indentation:
492 @if cppi --version >/dev/null 2>&1; then \
493 $(VC_LIST_EXCEPT) | grep '\.[ch]$$' | xargs cppi -a -c \
494 || { echo '$(ME): incorrect preprocessor indentation' 1>&2; \
497 echo '$(ME): skipping test $@: cppi not installed' 1>&2; \
500 # THANKS.in is a list of name/email pairs for people who are mentioned in
501 # commit logs (and generated ChangeLog), but who are not also listed as an
502 # author of a commit. Name/email pairs of commit authors are automatically
503 # extracted from the repository. As a very minor factorization, when
504 # someone who was initially listed only in THANKS.in later authors a commit,
505 # this rule detects that their pair may now be removed from THANKS.in.
506 sc_THANKS_in_duplicates:
507 @{ git log --pretty=format:%aN | sort -u; \
508 cut -b-36 THANKS.in | sed '/^$$/d;s/ *$$//'; } \
509 | sort | uniq -d | grep . \
510 && { echo '$(ME): remove the above names from THANKS.in' \
513 # Override the default Cc: used in generating an announcement.
514 announcement_Cc_ = $(translation_project_), \
515 coreutils@gnu.org, coreutils-announce@gnu.org
517 -include $(srcdir)/dist-check.mk
519 update-copyright-env = \
520 UPDATE_COPYRIGHT_FORCE=1 \
521 UPDATE_COPYRIGHT_USE_INTERVALS=2 \
522 UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
524 # List syntax-check exemptions.
525 exclude_file_name_regexp--sc_space_tab = \
526 ^(tests/pr/|tests/misc/nl\.sh$$|gl/.*\.diff$$)
527 exclude_file_name_regexp--sc_bindtextdomain = ^(gl/.*|lib/euidaccess-stat)\.c$$
528 exclude_file_name_regexp--sc_trailing_blank = ^tests/pr/
529 exclude_file_name_regexp--sc_system_h_headers = \
530 ^src/((system|copy)\.h|libstdbuf\.c)$$
532 _src = (false|lbracket|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname))
533 exclude_file_name_regexp--sc_require_config_h_first = \
534 (^lib/buffer-lcm\.c|src/$(_src)\.c)$$
535 exclude_file_name_regexp--sc_require_config_h = \
536 $(exclude_file_name_regexp--sc_require_config_h_first)
538 exclude_file_name_regexp--sc_po_check = ^gl/
539 exclude_file_name_regexp--sc_prohibit_always-defined_macros = \
540 ^src/(seq|remove)\.c$$
541 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^tests/pr/
542 exclude_file_name_regexp--sc_program_name = ^(gl/.*|lib/euidaccess-stat)\.c$$
543 exclude_file_name_regexp--sc_file_system = \
544 NEWS|^(tests/init\.cfg|src/df\.c|tests/df/df-P\.sh)$$
545 exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \
547 exclude_file_name_regexp--sc_prohibit_fail_0 = \
548 (^.*/git-hooks/commit-msg|^tests/init\.sh|Makefile\.am|\.mk|.*\.texi)$$
549 exclude_file_name_regexp--sc_prohibit_atoi_atof = ^lib/euidaccess-stat\.c$$
551 tbi_1 = ^tests/pr/|(^gl/lib/reg.*\.c\.diff|Makefile(\.am)?|\.mk|^man/help2man)$$
552 tbi_2 = ^scripts/git-hooks/(pre-commit|pre-applypatch|applypatch-msg)$$
553 exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \
556 exclude_file_name_regexp--sc_preprocessor_indentation = \
557 ^(gl/lib/rand-isaac\.[ch]|gl/tests/test-rand-isaac\.c)$$
558 exclude_file_name_regexp--sc_prohibit_stat_st_blocks = \
559 ^(src/system\.h|tests/du/2g\.sh)$$
561 exclude_file_name_regexp--sc_prohibit_continued_string_alpha_in_column_1 = \
562 ^src/(system\.h|od\.c|printf\.c)$$
564 exclude_file_name_regexp--sc_prohibit_test_backticks = \
565 ^tests/(init\.sh|Makefile\.am|misc/stdbuf\.sh)$$
567 # Exempt test.c, since it's nominally shared, and relatively static.
568 exclude_file_name_regexp--sc_prohibit_operator_at_end_of_line = \
569 ^src/(ptx|test|head)\.c$$