annotate cfg.mk @ 40203:30d91797009f

autoupdate
author Karl Berry <karl@freefriends.org>
date Fri, 01 Mar 2019 08:42:42 -0800
parents 9fe24cb73aa5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16296
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
1 # This file is used via the maint.mk-using rule in Makefile.
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
2
17587
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
3 # This is a gnulib-specific rule to keep non-ascii characters
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
4 # from creeping into our .texi files. There is nothing inherently
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
5 # wrong with e.g., UTF-8 characters in texinfo sources, but here,
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
6 # we had accumulated some non-ascii apostrophes and hyphens, and
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
7 # they were recently replaced with their ascii analogs. This rule
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
8 # should help keep things consistent.
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
9 sc_keep_gnulib_texi_files_mostly_ascii:
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
10 @prohibit='[^][ a-zA-Z0-9'\''`~!\@#$$%^&*(){}=+";:,./<>?|\_-]' \
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
11 in_vc_files='\.texi$$' \
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
12 halt='invalid bytes in gnulib .texi file' \
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
13 $(_sc_search_regexp)
386365d65046 maint: add a gnulib-local rule to keep non-ascii out of .texi files
Jim Meyering <meyering@fb.com>
parents: 17003
diff changeset
14
16296
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
15 local-checks-to-skip = \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
16 sc_GFDL_version \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
17 sc_GPL_version \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
18 sc_bindtextdomain \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
19 sc_cast_of_alloca_return_value \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
20 sc_cast_of_argument_to_free \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
21 sc_cast_of_x_alloc_return_value \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
22 sc_error_message_period \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
23 sc_error_message_uppercase \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
24 sc_immutable_NEWS \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
25 sc_m4_quote_check \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
26 sc_makefile_TAB_only_indentation \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
27 sc_makefile_at_at_check \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
28 sc_makefile_path_separator_check \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
29 sc_obsolete_symbols \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
30 sc_prohibit_HAVE_MBRTOWC \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
31 sc_prohibit_S_IS_definition \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
32 sc_prohibit_always_true_header_tests \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
33 sc_prohibit_always-defined_macros \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
34 sc_prohibit_atoi_atof \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
35 sc_prohibit_c_ctype_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
36 sc_prohibit_dirent_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
37 sc_prohibit_error_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
38 sc_prohibit_getopt_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
39 sc_prohibit_have_config_h \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
40 sc_prohibit_inttostr_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
41 sc_prohibit_magic_number_exit \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
42 sc_prohibit_path_max_allocation \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
43 sc_prohibit_reversed_compare_failure \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
44 sc_prohibit_safe_read_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
45 sc_prohibit_signal_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
46 sc_prohibit_stat_st_blocks \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
47 sc_prohibit_stddef_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
48 sc_prohibit_stdio--_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
49 sc_prohibit_strcmp \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
50 sc_prohibit_strings_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
51 sc_prohibit_undesirable_word_seq \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
52 sc_prohibit_xalloc_without_use \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
53 sc_require_config_h \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
54 sc_require_config_h_first \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
55 sc_space_tab \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
56 sc_texinfo_acronym \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
57 sc_two_space_separator_in_usage \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
58 sc_unmarked_diagnostics \
daedf702e83c maint: add framework to run syntax-check rules against gnulib sources
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
59 sc_useless_cpp_parens
16297
9e763e250026 maint: remove empty lines at EOF, but excluding modules/*
Jim Meyering <meyering@redhat.com>
parents: 16296
diff changeset
60
9e763e250026 maint: remove empty lines at EOF, but excluding modules/*
Jim Meyering <meyering@redhat.com>
parents: 16296
diff changeset
61 empty-at-EOF = /fr/LC_MESSAGES/test-quotearg\.mo$$|^doc/INSTALL(\.(ISO|UTF-8))?
9e763e250026 maint: remove empty lines at EOF, but excluding modules/*
Jim Meyering <meyering@redhat.com>
parents: 16296
diff changeset
62 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
9e763e250026 maint: remove empty lines at EOF, but excluding modules/*
Jim Meyering <meyering@redhat.com>
parents: 16296
diff changeset
63 ^modules/|^lib/javaversion\.class$$|$(empty-at-EOF)
16298
934e44e9f2a5 maint: enable double-word-prohibiting rule
Jim Meyering <meyering@redhat.com>
parents: 16297
diff changeset
64 exclude_file_name_regexp--sc_prohibit_doubled_word = \
934e44e9f2a5 maint: enable double-word-prohibiting rule
Jim Meyering <meyering@redhat.com>
parents: 16297
diff changeset
65 ^(tests/test-init\.sh|lib/base(32|64)\.c)$$
16302
43fb268b5b29 maint: enable sc_prohibit_openat_without_use
Jim Meyering <meyering@redhat.com>
parents: 16301
diff changeset
66 exclude_file_name_regexp--sc_prohibit_openat_without_use = ^lib/selinux-at\.c$$
16303
b21b4b8a7b66 maint: enable sc_trailing_blank
Jim Meyering <meyering@redhat.com>
parents: 16302
diff changeset
67 exclude_file_name_regexp--sc_trailing_blank = \
16784
5ad2d5fd1f23 maint: avoid spurious "make sc_maint" failure
Jim Meyering <meyering@redhat.com>
parents: 16303
diff changeset
68 ^(.*\.class|build-aux/texinfo\.tex|doc/Copyright/assign\.future\.manual)$$
16928
5ae6e7d59a53 maint: disable the strncpy prohibition
Jim Meyering <meyering@redhat.com>
parents: 16784
diff changeset
69
5ae6e7d59a53 maint: disable the strncpy prohibition
Jim Meyering <meyering@redhat.com>
parents: 16784
diff changeset
70 # Disable strncpy prohibition completely, for now.
5ae6e7d59a53 maint: disable the strncpy prohibition
Jim Meyering <meyering@redhat.com>
parents: 16784
diff changeset
71 exclude_file_name_regexp--sc_prohibit_strncpy = .*
16984
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
72
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
73 if_before_free_offenders_ = \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
74 clean-temp.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
75 csharpcomp.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
76 free.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
77 fstrcmp.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
78 gl_carray_list.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
79 glob.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
80 glthread/lock.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
81 propername.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
82 relocatable.c \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
83 vasnprintf.c
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
84
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
85 if_before_free_basename_re_ = \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
86 $(shell printf '%s\n' '$(if_before_free_offenders_)' \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
87 |sed 's|\.c\>||g'|tr -s '[\n[:space:]]' '|')
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
88
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
89 exclude_file_name_regexp--sc_avoid_if_before_free = \
c31ccd2abb3e maint: enable the sc_avoid_if_before_free syntax-check rule
Jim Meyering <meyering@redhat.com>
parents: 16928
diff changeset
90 ^lib/($(if_before_free_basename_re_))\.c$$
16988
ef9bd8b01585 maint.mk: new syntax check for HAVE_DECL checks
Eric Blake <eblake@redhat.com>
parents: 16984
diff changeset
91
ef9bd8b01585 maint.mk: new syntax check for HAVE_DECL checks
Eric Blake <eblake@redhat.com>
parents: 16984
diff changeset
92 exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests = \
17003
13795cd8c0ba getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
Bruno Haible <bruno@clisp.org>
parents: 16995
diff changeset
93 ^lib/((error|getopt|strtoimax)\.c|(argp-namefrob)\.h)$$