summaryrefslogtreecommitdiff
path: root/top
Commit message (Collapse)AuthorAgeFilesLines
* bootstrap: correct last changeJim Meyering2023-03-091-1/+2
| | | | | | | * top/bootstrap-funclib.sh (autogen) [AUTORECONFFLAGS]: Do always apply the --no-recursive option. * build-aux/bootstrap: Regenerate. Spotted by Bruno Haible.
* bootstrap: remove code that accommodated RHEL5's old autoreconfJim Meyering2023-03-091-9/+1
| | | | | | | | * top/bootstrap-funclib.sh (autogen) [AUTORECONFFLAGS]: RHEL5 has not been supported since 2017. It included (and this code worked around) a version of autoreconf that was so old it did not accept the --no-recursive option. Drop that workaround. * build-aux/bootstrap: Regenerate.
* maintainer-makefile: Determine gnulib's location on disk correctly.Bruno Haible2023-01-301-3/+3
| | | | | * top/maint.mk (gnulib_dir): Give priority to $(GNULIB_SRCDIR) over $(srcdir)/gnulib.
* bootstrap: suppress stray message from --pullPaul Eggert2023-01-061-2/+4
| | | | | | | * build-aux/bootstrap: Regenerate. * top/bootstrap-funclib.sh (autopull): Suggest running autogen.sh only if it exists (i.e., the package is using autopull.sh/autogen.sh). Suggest the same name for autogen.sh that is used in the test.
* maint: run 'make update-copyright'Simon Josefsson2023-01-017-7/+7
|
* Add --pull, --gen options to build-aux/bootstrapPaul Eggert2022-12-271-3/+23
| | | | | | | | | This supports a single bootstrap script with --pull and --gen options, as an alternative to separate autogen.sh and autopull.sh and bootstrap-funclib.sh auxiliary files. * top/bootstrap: With --version, also output library version. Support update of package that has only the bootstrap script, and not the other three files.
* Support packages with just 'bootstrap'Paul Eggert2022-12-273-24/+24
| | | | | | | | | | | * top/bootstrap: With --version, also output library version. Support update of package that has only the bootstrap script, and not the other three files. * top/bootstrap-funclib.sh (scriptlibversion): Rename from scriptversion. All uses changed. This way we can distinguish script from script library versions. (upgrade_bootstrap): If the package currently has only the bootstrap script, just update that.
* Bootstrap with functions, not scriptsPaul Eggert2022-12-271-8/+6
| | | | | | | * top/bootstrap: Use autopull and autogen functions, not shell scripts. This lets build-aux/bootstrap become a standalone script. It does not change the behavior of top/bootstrap, except for minor rewording of disagnostics.
* Make autopull a shell function tooPaul Eggert2022-12-272-237/+233
| | | | | | | | | | This does not change behavior. It is helpful for future changes. * top/autopull.sh: Call autopull to do the actual work. (usage, download_po_files, update_po_files): Move to top/bootstrap-funclib.sh. * top/bootstrap-funclib.sh (autopull_usage): Rename from ‘usage’. (autopull): New function, containing the top level of the old top/autopull.sh.
* Make autogen a shell function tooPaul Eggert2022-12-272-449/+451
| | | | | | | | | | This does not change behavior. It is helpful for future changes. * top/autogen.sh: Call autogen to do the actual work. (usage, version_controlled_file, gitignore_entries, insert_if_absent): (insert_vc_ignore, symlink_to_dir): Move to top/bootstrap-funclib.sh. * top/bootstrap-funclib.sh (autogen_usage): Rename from ‘usage’. (autogen): New function, containing the top level of the old top/autogen.sh.
* Move scriptversion= lines up in scriptsPaul Eggert2022-12-274-8/+8
| | | | By default they need to be in the first 8 lines to be updated.
* In 'trap' commands, prefer symbolic to numeric signal names.Bruno Haible2022-11-263-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by Mike Fulton <fultonm@ca.ibm.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2022-11/msg00130.html>. * gnulib-tool: Use symbolic signal names. * posix-modules: Likewise. * MODULES.html.sh: Likewise. * build-aux/bootstrap (prepare_GNULIB_SRCDIR): Likewise. * build-aux/csharpcomp.sh.in: Likewise. * build-aux/gnu-web-doc-update: Likewise. * top/autogen.sh: Likewise. * top/bootstrap-funclib.sh: Likewise. * top/gitsub.sh: Likewise. * lib/t-idcache: Likewise. * tests/havelib/rpath-1: Likewise. * tests/havelib/rpath-2_a: Likewise. * tests/havelib/rpath-2_b: Likewise. * tests/havelib/rpath-3_a: Likewise. * tests/havelib/rpath-3_b: Likewise. * tests/init.sh: Likewise. * tests/test-binary-io.sh: Likewise. * tests/test-c-stack.sh: Likewise. * tests/test-c-stack2.sh: Likewise. * tests/test-dprintf-posix.sh: Likewise. * tests/test-fpending.sh: Likewise. * tests/test-fprintf-posix.sh: Likewise. * tests/test-lseek.sh: Likewise. * tests/test-printf-posix.sh: Likewise. * tests/test-select-in.sh: Likewise. * tests/test-select-out.sh: Likewise. * tests/test-sigpipe.sh: Likewise. * tests/test-tsearch.sh: Likewise. * tests/test-update-copyright.sh: Likewise. * tests/test-vdprintf-posix.sh: Likewise. * tests/test-vfprintf-posix.sh: Likewise. * tests/test-vprintf-posix.sh: Likewise. * tests/test-xprintf-posix.sh: Likewise. * tests/uniwidth/test-uc_width2.sh: Likewise.
* maintainer-makefile: Fix last sc_indent commit.Simon Josefsson2022-11-011-1/+1
| | | | | * top/maint.mk (sc_indent): Don't use grep -q. Suggested by Bruno Haible.
* maintainer-makefile: Add syntax-check rule for unportable 'grep -q'.Simon Josefsson2022-11-011-0/+4
| | | | * top/maint.mk (sc_unportable_grep_q): Add.
* maintainer-makefile: Fix Apple Xcode 'make syntax-check'.Simon Josefsson2022-10-311-2/+2
| | | | * top/maint.mk (sc_indent): Don't use non-GNU indent.
* maint: avoid unportable ERE \}Paul Eggert2022-09-111-1/+1
| | | | | * top/maint.mk (sc_copyright_check): Avoid unportable use of \} in ERE.
* verify: improve maint checkPaul Eggert2022-09-111-1/+1
| | | | | * top/maint.mk (sc_prohibit_verify_without_use): Adjust re to match verify.h.
* gnumakefile: Improve tarball reproducibility.Simon Josefsson2022-09-061-1/+1
| | | | | | * top/GNUmakefile (TAR_OPTIONS): Add --sort=name. Suggested by Tzvetelin Katchov <katchov@gnu.org>. * DEPENDENCIES: Mention tar 1.28 dependency.
* maintainer-makefile: Check for incorrect DISTCHECK_CONFIGURE_FLAGS usage.Simon Josefsson2022-08-161-0/+6
| | | | * top/maint.mk (sc_makefile_DISTCHECK_CONFIGURE_FLAGS): Add.
* doc: Update regarding bootstrap split.Bruno Haible2022-07-311-5/+1
| | | | | | | | | | | Reported by Paul Smith <psmith@gnu.org>. * doc/gnulib-tool.texi (gettextize and autopoint): Mention autogen.sh instead of bootstrap. (VCS Issues): Describe three alternative approaches. * doc/gnulib.texi (Developer tools): Mention also autopull.sh and autogen.sh. * top/bootstrap (usage): Fix copy&paste mistake.
* bootstrap: Make the automatic sync more resilient.Bruno Haible2022-07-252-8/+17
| | | | | | | | | | Reported by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2022-07/msg00060.html>. * top/bootstrap (bootstrap_sync): Set to true when bootstrap-funclib.sh is not present. * top/gen-bootstrap.sed: Insert a couple of comment lines. * build-aux/bootstrap: Regenerated using "make build-aux/bootstrap".
* Fix comment.Bruno Haible2022-07-254-21/+21
| | | | | | | | | | Reported by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2022-07/msg00058.html>. * top/bootstrap-funclib.sh: Fix comment about canonical location. * top/autopull.sh: Likewise. * top/autogen.sh: Likewise. * top/bootstrap: Likewise.
* Split bootstrap into autopull.sh and autogen.sh.Bruno Haible2022-07-245-0/+1576
| | | | | | | | | | | * top/bootstrap-funclib.sh: New file, based on build-aux/bootstrap. * top/autopull.sh: New file, based on build-aux/bootstrap. * top/autogen.sh: New file, based on build-aux/bootstrap. * top/bootstrap: New file, based on build-aux/bootstrap. * top/gen-bootstrap.sed: New file. * Makefile (build-aux/bootstrap): New rule. (regen): Depend on it. * build-aux/bootstrap: Regenerated using "make build-aux/bootstrap".
* maint.mk: fix syntax-check for unnecessary hash.h header useJim Meyering2022-06-231-2/+2
| | | | | | | | * top/maint.mk (_hash_re): Correct the regexp. It had two problems: - lacked the "hash_" prefix, so would match non-uses - failed to detect uses of the hash_x?initialize functions The former led to an excess/unneeded use of hash.h in coreutils' cut.c. The latter would have led to a FP "not needed" report for copy.c.
* regex-quote: \] -> ] in EREs and BREsPaul Eggert2022-06-031-4/+4
| | | | | | | | | | | | | * build-aux/bootstrap: * build-aux/bootstrap.conf (gettext_external): * check-AC_LIBOBJ: * lib/regex-quote.c (bre_special, ere_special): * gnulib-tool (func_modules_transitive_closure) (func_emit_autoconf_snippet, func_import, func_create_testdir): * tests/test-regex-quote.c (test_bre, test_ere): * top/maint.mk (longopt_re, gpg_key_ID): Don’t use \] in BREs and EREs, as POSIX says the interpretation is undefined.
* maintainer-makefile: Improve GnuPG announce-gen options.Simon Josefsson2022-03-141-0/+9
| | | | | | | * top/maint.mk (gpg_key_emil): New variable. (gpg_keyring_url): New variable. (announcement): Pass them as --gpg-key-email and --gpg-keyring-url.
* maintainer-makefile: fix sc_error_message_uppercase false failurePádraig Brady2022-01-281-1/+1
| | | | | | | | * top/maint.mk (sc_error_message_uppercase): Don't trigger for any of the PRI... defines. Note we add an extra constraint here that PRI always follows a double quote, but that's almost always the case, or can be easily made so by prepending "" for example.
* license: fix GPLv3 texts to use a comma instead of semicolon.Bernhard Voelker2022-01-051-1/+1
| | | | | | | | | See: https://www.gnu.org/licenses/gpl-3.0.html#howto Run: $ git grep -l 'Foundation; either version 3' \ | xargs sed -i '/Foundation; either version 3/ s/n; e/n, e/' * All files using GPLv3: Adjust via the above command.
* maint: run 'make update-copyright'Paul Eggert2022-01-013-3/+3
|
* maint: tight-scope-mk need not be read-onlyPaul Eggert2021-12-241-2/+1
| | | | | * top/maint.mk (tight-scope.mk): Don’t bother to make tight-scope.mk read-only either.
* Move AM_V_GEN to recipe startPaul Eggert2021-12-211-1/+1
| | | | | | | | | | | | | | | | | | | This is especially needed when building Emacs, as it uses ‘AM_V_GEN=@$(info GEN $@)', which means the GEN line is output by GNU make just before the recipe runs, regardless of where AM_V_GEN appears in the recipe. And it’s also good practice even if the default Automake ‘AM_V_GEN=@echo GEN $@;’ is used, as it’s better to output the GEN line consistently at the start of every recipe, even if this precedes a preparatory command that almost always works silently. * modules/arpa_inet, modules/dynarray, modules/net_if: * modules/netinet_in, modules/scratch_buffer, modules/selinux-h: * modules/sys_file, modules/sys_ioctl, modules/sys_random: * modules/sys_resource, modules/sys_select, modules/sys_socket: * modules/sys_stat, modules/sys_time, modules/sys_times: * modules/sys_types, modules/sys_uio, modules/sys_utsname: * modules/sys_wait, modules/unicase/special-casing, top/maint.mk: Use AM_V_GEN only at the start of each recipe.
* maint: Avoid syntax-check failure for empty gnulib submodule.Simon Josefsson2021-09-201-1/+1
| | | | | * top/maint.mk (gnulib_dir): Fall back to GNULIB_SRCDIR if submodule is not checked out.
* 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.