summaryrefslogtreecommitdiff
path: root/top
Commit message (Collapse)AuthorAgeFilesLines
* maintainer-makefile: add 'can' to sc_prohibit_doubled_wordPádraig Brady2021-09-091-1/+1
| | | | * top/maint.mk (sc_prohibit_doubled_word): Check for "can can".
* maintainer-makefile: Add indentation syntax-check rule.Simon Josefsson2021-09-031-4/+24
| | | | | | | | * top/maint.mk (indent): Use AM_V_GEN and indent_args. (sc_indent): New rule. (indent_args): New variable. (C_SOURCES): New variable, initialized to reasonable C files. (exclude_file_name_regexp--indent): New variable.
* maintainer-makefile: Print checksums by default.Simon Josefsson2021-08-031-1/+0
| | | | * top/maint.mk (announcement): Drop --no-print-checksums.
* maintainer-makefile: Respect cfg.mk setting announcement_Cc_, reverting most ↵Simon Josefsson2021-07-281-5/+5
| | | | | | | | | | | | of the previous patch. * top/maint.mk (announcement_mail_Cc_stable): Rename back to announcement_Cc_stable. (announcement_Cc_alpha): Rename back to announcement_mail_Cc_alpha. (announcement_Cc_): Renamed from announcement_mail_Cc_. (announcement_mail_headers_stable) (announcement_mail_headers_alpha): Use announcement_Cc_ again.
* maintainer-makefile: Fix announcement mail CC's.Simon Josefsson2021-07-281-4/+4
| | | | | | | | | * top/maint.mk (announcement_Cc_stable): Rename to announcement_mail_Cc_stable. (announcement_Cc_alpha): Rename to announcement_mail_Cc_alpha. (announcement_mail_headers_stable) (announcement_mail_headers_alpha): Use announcement_mail_Cc_ instead of announcement_Cc_.
* maintainer-makefile: Mimic bootstrap's gnulib-srcdir guessing.Simon Josefsson2021-01-261-1/+5
| | | | | * top/maint.mk (gnulib_dir): If $(srcdir)/gnulib doesn't exist, fall back to $GNULIB_SRCDIR.
* Correct preceeding change.Simon Josefsson2021-01-101-2/+2
| | | | * top/gitsub.sh: Update link.
* Use https:// instead of git://.Simon Josefsson2021-01-101-3/+3
| | | | | | | | * build-aux/bootstrap (default_gnulib_url): Ditto. * config/srclistvars.sh: Ditto. * doc/gnulib-readme.texi (Git Checkout): Ditto. * doc/gnulib-tool.texi (VCS Issues): Ditto. * top/gitsub.sh: Update link.
* maintainer-makefile: correct preceding changeJim Meyering2021-01-051-1/+1
| | | | * top/maint.mk (syntax-check-rules): Use LC_ALL=C, not LANG=C.
* maintainer-makefile: Invoke syntax-checks regardless of locale.Simon Josefsson2021-01-041-1/+1
| | | | | * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C environment because [a-z] may not include 'w' in all locales.
* maint: run 'make update-copyright'Paul Eggert2020-12-313-3/+3
|
* gnumakefile: say ‘$(MAKE)’ not ‘make’Paul Eggert2020-08-011-1/+1
| | | | | | * top/GNUmakefile (abort-due-to-no-makefile): Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic. This change is backported from Autoconf.
* * top/maint.mk: Pacify Autoconf TAB-8-space rule.Paul Eggert2020-06-291-2/+2
|
* maint: Run 'make update-copyright'Paul Eggert2019-12-313-3/+3
|
* maintainer-makefile: update rule for argmatchAkim Demaille2019-10-221-1/+1
| | | | * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
* gitsub.sh: Add support for shallow-cloning of subdirectories.Bruno Haible2019-09-011-7/+33
| | | | | | | | * top/gitsub.sh (func_usage): Document allowed git options with 'git pull'. (func_pull): Accept GIT_OPTIONS argument. (pull): Parse git options before complaining about too many arguments. Pass the git options to func_pull.
* maintainer-makefile: restore portability to non-GNU awksAkim Demaille2019-06-241-9/+12
| | | | | | Reported by Tim Rühsen. * top/maint.mk (AWK): New variable. Use it. (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
* maintainer-makefile: catch uses of $< in non-implicit rulesAkim Demaille2019-05-191-0/+35
| | | | * top/maint.mk (sc_prohibit_magic_number_exit): New.
* gitsub.sh: New file.Bruno Haible2019-04-271-0/+483
| | | | * top/gitsub.sh: New file.
* long-options: add parse_gnu_standard_options_onlyBernhard Voelker2019-02-231-1/+1
| | | | | | | | | | | | | | | Discussed in https://bugs.gnu.org/33468 . * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0. (parse_gnu_standard_options_only): Add function to process the GNU default options --help and --version and fail for any other unknown long or short option. See https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html . * lib/long-options.h (parse_gnu_standard_options_only): Declare it. * modules/long-options (depends-on): Add stdbool, exitfail. * top/maint.mk (sc_prohibit_long_options_without_use): Update syntax-check rule, add new function name.
* maintainer-makefile: Make the configure.ac section optional.Bruno Haible2019-01-061-0/+6
| | | | * top/maint.mk (GREP, SED): Define if not defined.
* maintainer-makefile: fix typo in previous patchEric Blake2019-01-031-1/+1
| | | | | | | * top/maint.mk (_sc_search_regexp): Fix my accidental corruption of Roman's work. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint.mk: Replace grep with $(GREP)Roman Bolshakov2019-01-021-58/+58
| | | | | | | | | | | | | | | | | | | | A project that uses maint.mk can specify regular expressions that are not supported in system grep. Autoconf can discover an alias for GNU grep and set it in GREP but it takes no effect for maint.mk The patch provides an ability to use GNU grep if it was discovered by autoconf and by calling GNU grep we don't get the messages in syntax-check: prohibit_diagnostic_without_format grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20181213153453.38123-3-r.bolshakov@yadro.com> Signed-off-by: Eric Blake <eblake@redhat.com>
* maint.mk: Split long argument listsRoman Bolshakov2019-01-021-49/+86
| | | | | | | | | | | | | | | | | | | $(VC_LIST_EXCEPT) is usually expanded into arguments for a command. When a project contains too many, some operating systems can't pass all the arguments because they hit the limit of arguments. FreeBSD and macOS are known to have the exec limit of 256k memory used by arguments. More on the issue: http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00019.html https://www.redhat.com/archives/libvir-list/2015-August/msg00758.html xargs without flags can be used to limit number of arguments, coupled with use of the shell's built-in echo which is not subject to the exec limits. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20181213153453.38123-2-r.bolshakov@yadro.com> Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: Run 'make update-copyright'Paul Eggert2019-01-012-2/+2
|
* maintainer-makefile: fix syntax-check rule for "same.h"Bernhard Voelker2018-10-281-1/+1
| | | | | * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check for 'same_nameat', too.
* README-release: also run any check-very-expensive testsJim Meyering2018-06-191-2/+3
| | | | | * top/README-release: Adjust instructions so they run the check-very-expensive tests when there is such a target.
* maint.mk: exempt "/proc/filesystems" from "file system" syntax checkJim Meyering2018-02-031-0/+1
| | | | | * top/maint.mk (sc_file_system): Don't complain about "/proc/filesystems".
* maint: Run 'make update-copyright'Paul Eggert2018-01-012-2/+2
|
* maint: shorten https://lists.gnu.org/archive/html/... linksJim Meyering2017-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each /archive/html/ part can be replace with /r/. Run this to induce the change: git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g' * ChangeLog: Perform that substitution. * Makefile: Likewise. * STATUS-libposix: Likewise. * build-aux/bootstrap: Likewise. * doc/maintain.texi: Likewise. * gnulib-tool: Likewise. * lib/allocator.h: Likewise. * lib/argp-ba.c: Likewise. * lib/argp-pv.c: Likewise. * lib/canon-host.c: Likewise. * lib/canonicalize-lgpl.c: Likewise. * lib/float.in.h: Likewise. * lib/fstat.c: Likewise. * lib/getdelim.c: Likewise. * lib/getprogname.c: Likewise. * lib/glthread/thread.h: Likewise. * lib/intprops.h: Likewise. * lib/mbsrtowcs-state.c: Likewise. * lib/safe-read.c: Likewise. * lib/signal.in.h: Likewise. * lib/stat.c: Likewise. * lib/stdbool.in.h: Likewise. * lib/stdio-impl.h: Likewise. * lib/stdio.in.h: Likewise. * lib/sysexits.in.h: Likewise. * lib/timespec.h: Likewise. * lib/wcsrtombs-state.c: Likewise. * m4/alloca.m4: Likewise. * m4/extern-inline.m4: Likewise. * m4/fstatat.m4: Likewise. * m4/gnulib-common.m4: Likewise. * m4/lib-ignore.m4: Likewise. * m4/printf.m4: Likewise. * m4/regex.m4: Likewise. * m4/stat-size.m4: Likewise. * m4/std-gnu11.m4: Likewise. * m4/stdbool.m4: Likewise. * m4/sys_types_h.m4: Likewise. * m4/threadlib.m4: Likewise. * m4/vararrays.m4: Likewise. * pygnulib/GLImport.py: Likewise. * tests/test-exp.h: Likewise. * tests/test-exp2.h: Likewise. * tests/test-expm1.h: Likewise. * tests/test-fflush2.c: Likewise. * tests/test-getopt_long.h: Likewise. * tests/test-intprops.c: Likewise. * tests/test-log.h: Likewise. * tests/test-log10.h: Likewise. * tests/test-log1p.h: Likewise. * tests/test-log2.h: Likewise. * tests/test-printf-posix.h: Likewise. * tests/test-regex.c: Likewise. * tests/test-snprintf-posix.h: Likewise. * tests/test-sprintf-posix.h: Likewise. * tests/test-stdalign.c: Likewise. * tests/test-stdbool.c: Likewise. * tests/test-vasnprintf-posix.c: Likewise. * tests/test-vasprintf-posix.c: Likewise. * top/maint.mk: Likewise.
* all: Replace many more http URLs by https URLs. Update stale URLs.Bruno Haible2017-09-142-5/+5
| | | | | * users.txt: Remove mention of 'newts'. * lib/localename.c: Update comment about LANG_SOTHO.
* all: prefer https: URLsPaul Eggert2017-09-133-5/+5
|
* maintainer-makefile: FTP -> HTTPSPaul Eggert2017-09-121-2/+2
| | | | | * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead of FTP, which is planned to be decommissioned on 2017-11-01.
* maint.mk: update regex to reflect 2013 addition of "assume" to verify.hJim Meyering2017-05-131-1/+1
| | | | | * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source file that uses the assume macro, claiming that verify.h is unused.
* maint.mk: enforce spelling of "timestamp" (i.e., no space)Jim Meyering2017-01-101-1/+2
| | | | | * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also disallow /\btime\s+stamps?\b/. Prefer "timestamp".
* maint.mk: support parallel execution of coveragePádraig Brady2017-01-051-1/+4
| | | | | | * top/maint.mk (coverage): Run dependencies serially, thus supporting parallel processing of each one, particularly build-coverage, which builds and runs tests.
* version-etc: new yearPaul Eggert2017-01-012-2/+2
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* maint.mk: hoist gnulib_dir definition earlierEric Blake2016-12-311-1/+4
| | | | | | | | | | | | | | | Commit 1894933 introduced a temporary warning during all uses of 'make': Can't open /lib/intprops.h: No such file or directory. due to an early evaluation of $(shell) prior to the default definition of $(gnulib_dir). While that has been fixed in commit ffff79d, hoisting the definition to the top will prevent further edits from inadvertently reintroducing the problem. * top/maint.mk (gnulib_dir): Move near top of file. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint.mk: do not always evaluate intprops-related shellJim Meyering2016-12-311-1/+1
| | | | | | | | | * top/maint.mk (_intprops_names): Change := to just "=" to avoid using gnulib_dir undefined (gnulib_dir is defined later in the file, which will be fixed separately), and besides, there is no need to incur the cost of this shell invocation for every single use of this .mk file. Reported by Eric Blake in https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
* maint.mk: improve sc_prohibit_intprops_without_useJim Meyering2016-12-301-12/+8
| | | | | * top/maint.mk (_intprops_names): Don't hard-code the list of symbol names. Instead, derive it on the fly.
* maint.mk: update list of intprops.h symbol namesJim Meyering2016-12-301-4/+5
| | | | | | * top/maint.mk (_intprops_names): Regenerate the list of symbol names. This avoids a false failure of the sc_prohibit_intprops_without_use in grep.
* main.mk: remove sc_program_namePino Toscano2016-09-051-9/+0
| | | | | | | 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.
* maint.mk: expand the prohibit_doubled_word regexJán Tomko2016-08-021-1/+6
| | | | | | | | | This check has a static list of words that are checked for repetitions. Expand it before running the perl script to avoid using expensive captures. This decreases the cost for libvirt from 1.66s to 0.66s. * top/maint.mk (prohibit_doubled_word_expanded_): Define. (sc_prohibit_doubled_word): Use it.
* maint.mk: speed up require_config_h_firstJán Tomko2016-08-011-7/+16
| | | | | | | Instead of spawning three processes per file, rewrite the check in perl and run it once for all the files. * top/maint.mk (perl_config_h_first_): Define. (sc_require_config_h_first): Use it in place of shell code.
* maint.mk: speed up sc_po_checkJán Tomko2016-08-011-15/+17
| | | | | | | | sc_po_check would skip files based on their names, or on the existence of files with derived names. Rewrite it to use perl instead of shell to make the check faster. * top/maint.mk (perl_translatable_files_list_): Define. (sc_po_check): Use it.
* intprops, mktime, strtol: assume two's complementPaul Eggert2016-04-131-2/+1
| | | | | | | | | | | | | | | | | | These macros were not portable to every conforming C11 ones' complement platform. It's not worth the hassle of porting to some platforms that use ones' complement or signed magnitude, as such platforms are almost purely theoretical nowadays and porting even to some of them makes the code harder to review for little practical benefit. Problem reported by Florian Weimer in: https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT) (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT): * lib/mktime.c (TYPE_TWOS_COMPLEMENT): * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT) (TYPE_SIGNED_MAGNITUDE): Remove. All uses rewritten to assume two's complement, which is all we can reasonably test nowadays anyway. * top/maint.mk (_intprops_names): Remove the removed macros.
* version-etc: new yearPaul Eggert2016-01-012-2/+2
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* maint.mk: sc_tight_scope: remove extraneous expressionsPádraig Brady2015-10-181-1/+1
| | | | | | | * top/maint.mk (tight_scope): This is not really required since commit 3ef58f46 as sed_wrap ensures we don't get an empty expression that matches all nm entries. But it does remove extraneous entries that may be confusing or cause issue in future maintenance.
* maint.mk: _gl_TS_function_match: fix "extern" name extracting regexpJim Meyering2015-10-171-1/+1
| | | | | | | * top/maint.mk (_gl_TS_function_match): This heuristic extern-function- name-extraction regexp mistakenly used \S+, and would mistakenly extract "*F" from "extern int *F()" rather than the desired "F". Use \w+ instead.
* maint.mk: sc_tight_scope: factor and support OS XJim Meyering2015-10-171-6/+7
| | | | | | | | * top/maint.mk (_gl_tight_scope): Address three issues: - factor out four instances of code that wraps a string in "^...$" - allow nm-reported symbol names to have an optional leading "_" - add "main" to the list of ignored variable names, because on os x, "main" has nm-reported type "S" in the variable-checking section.