1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

16 Commits

Author SHA1 Message Date
Pino Toscano
38c0fe5ca1 main.mk: remove sc_program_name
There is no more need to use set_program_name in tools (getprogname
is enough for most of the cases).
* cfg.mk (local-checks-to-skip): Remove sc_program_name.
* top/maint.mk (sc_program_name): Remove.
2016-09-05 09:21:54 -07:00
Jim Meyering
0f3a662447 maint: add a gnulib-local rule to keep non-ascii out of .texi files
* cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
so that "make sc_maint" will ding anyone who puts non-ascii
in any of gnulib's .texi files.
2014-01-04 11:39:30 -08:00
Bruno Haible
8d46fac47c getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
* lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
* cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
Remove exemption for getpass.h.
Suggested by Eric Blake.
2012-07-22 21:31:42 +02:00
Bruno Haible
85ed801342 fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
* lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
* cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
Remove exemption for fpending.h.
Suggested by Eric Blake.
2012-07-15 23:00:48 +02:00
Eric Blake
fabe8a6810 maint.mk: new syntax check for HAVE_DECL checks
Based on Karel's report, we might as well enforce a syntax check
to help avoid future problems.
https://lists.gnu.org/archive/html/coreutils/2012-06/msg00037.html

Exempt a few files that still get picked up in the wild rather
than as a full gnulib module with m4 files.

* top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
* cfg.mk
(exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
Exempt some false positives.
Based on a report by Karel Zak.

Signed-off-by: Eric Blake <eblake@redhat.com>
2012-07-13 14:31:48 -06:00
Jim Meyering
f344d84d02 maint: enable the sc_avoid_if_before_free syntax-check rule
* cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
(if_before_free_offenders_): Define.
(if_before_free_basename_re_): Define.
Exempt current files with useless if-before-free.
2012-07-12 22:29:26 +02:00
Jim Meyering
6434eb4fc8 maint: disable the strncpy prohibition
* cfg.mk: Do not prohibit strncpy here.
2012-06-21 18:33:00 +02:00
Jim Meyering
9ebb49659d maint: avoid spurious "make sc_maint" failure
* cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
exempt all *.class file names, for lib/javaversion.class.
2012-04-16 09:14:12 +02:00
Jim Meyering
cefe1f0bed maint: enable sc_trailing_blank
* build-aux/pmccabe.css: Remove trailing blanks.
* doc/acl-cygwin.txt: Likewise.
* doc/gnu-oids.texi: Likewise
* cfg.mk: Enable sc_trailing_blank.
Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
2012-01-21 15:07:02 +01:00
Jim Meyering
141e296490 maint: enable sc_prohibit_openat_without_use
* cfg.mk: Enable sc_prohibit_openat_without_use.
Exempt lib/selinux-at.c.
2012-01-21 15:07:02 +01:00
Jim Meyering
890b216396 maint: enable sc_prohibit_cloexec_without_use
* cfg.mk: Enable sc_prohibit_cloexec_without_use.
* lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
2012-01-21 15:07:02 +01:00
Jim Meyering
34823be715 maint: enable sc_prohibit_intprops_without_use
* cfg.mk: Enable sc_prohibit_intprops_without_use
* tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
* lib/ftoastr.c: Likewise.
2012-01-21 15:07:02 +01:00
Jim Meyering
faba3cb9ba maint: enable sc_prohibit_hash_pjw_without_use
* cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
* top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
to match any use of \<hash_pjw\>, i.e., not necessarily with a
following " (".
2012-01-21 15:07:02 +01:00
Jim Meyering
c11a09e115 maint: enable double-word-prohibiting rule
* cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
Exempt three files.
2012-01-21 15:07:01 +01:00
Jim Meyering
7f45e1ae37 maint: remove empty lines at EOF, but excluding modules/*
Apply syntax rules at home as well as abroad.  Most changes
were induced by running this:
  make srcdir=. _build-aux=build-aux -f top/maint.mk \
    sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
    | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
* cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
Exempt modules/* and two binary files.
Also exclude doc/INSTALL*, per request from Bruno Haible.
* doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
* doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
* doc/Copyright/request-assign.future: Likewise.
* doc/Copyright/request-disclaim.changes: Likewise.
* doc/INSTALL: Likewise.
* doc/INSTALL.ISO: Likewise.
* doc/INSTALL.UTF-8: Likewise.
* doc/acl-cygwin.txt: Likewise.
* doc/acl-resources.txt: Likewise.
* doc/fdl-1.2.texi: Likewise.
* doc/fdl-1.3.texi: Likewise.
* doc/fdl.texi: Likewise.
* lib/argp-pin.c: Likewise.
* lib/round.c: Likewise.
* lib/unicase/u16-totitle.c: Likewise.
* lib/unictype/block_test.c: Likewise.
* lib/uninorm/canonical-decomposition.c: Likewise.
* m4/README: Likewise.
* m4/relocatable-lib.m4: Likewise.
* tests/test-isnand-nolibm.c: Likewise.
* tests/test-isnand.c: Likewise.
* tests/uninorm/NormalizationTest.txt: Likewise.
2012-01-21 15:07:01 +01:00
Jim Meyering
6caa4f5fa9 maint: add framework to run syntax-check rules against gnulib sources
* cfg.mk: New file, to disable all currently-failing tests.
We'll enable them one by one, as they are made to pass.
* Makefile (sc_maint): New rule.
2012-01-21 15:07:01 +01:00