summaryrefslogtreecommitdiff
path: root/build-aux
Commit message (Collapse)AuthorAgeFilesLines
* Split bootstrap into autopull.sh and autogen.sh.Bruno Haible2022-07-241-644/+323
| | | | | | | | | | | * 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".
* bootstrap: Obey another environment variable GNULIB_REFDIR.Bruno Haible2022-07-241-71/+84
| | | | | | | | | | | * build-aux/bootstrap (usage): Document option --gnulib-refdir and environment variable GNULIB_REFDIR. Accept option --gnulib-refdir. When GNULIB_SRCDIR is specified, verify that it denotes a directory. Use $GNULIB_REFDIR, not $GNULIB_SRCDIR, as argument to git's --reference option. Improve an error message. * NEWS: Mention the change.
* Fix a couple of ShellCheck warnings.Bruno Haible2022-07-234-19/+19
| | | | | | | | | | | | | * MODULES.html.sh (sed_escape_slash): Remove unused variable. * build-aux/bootstrap: Avoid computed printf format strings. * build-aux/do-release-commit-and-tag: Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/declared.sh: Fix "unrecognized option" message. * gnulib-tool (supplied_opts): Remove unused variable. (--single-con): Remove redundant option recognition. * tests/test-parse-duration.sh (nl): Remove unused variable. * tests/test-update-copyright.sh: Use double-quotes instead of single-quotes.
* Avoid DoS vulnerability through unsafe default assignment.Bruno Haible2022-07-234-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://www.shellcheck.net/wiki/SC2223 . * MODULES.html.sh (func_tmpdir): Surround default assignment with double-quotes. * build-aux/bootstrap: Likewise. * build-aux/csharpcomp.sh.in (func_tmpdir): Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/libtool-next-version (func_tmpdir): Likewise. * config/srclist-update: Likewise. * gnulib-tool (func_tmpdir): Likewise. * posix-modules (func_tmpdir): Likewise. * tests/test-atexit.sh: Likewise. * tests/test-btoc32-1.sh: Likewise. * tests/test-btoc32-2.sh: Likewise. * tests/test-btowc1.sh: Likewise. * tests/test-btowc2.sh: Likewise. * tests/test-c-dtoastr.sh: Likewise. * tests/test-c-ldtoastr.sh: Likewise. * tests/test-c-snprintf.sh: Likewise. * tests/test-c-strcase.sh: Likewise. * tests/test-c-vasprintf.sh: Likewise. * tests/test-c-vsnprintf.sh: Likewise. * tests/test-c-xvasprintf.sh: Likewise. * tests/test-c32isalnum.sh: Likewise. * tests/test-c32isalpha.sh: Likewise. * tests/test-c32isblank.sh: Likewise. * tests/test-c32iscntrl.sh: Likewise. * tests/test-c32isdigit.sh: Likewise. * tests/test-c32isgraph.sh: Likewise. * tests/test-c32islower.sh: Likewise. * tests/test-c32isprint.sh: Likewise. * tests/test-c32ispunct.sh: Likewise. * tests/test-c32isspace.sh: Likewise. * tests/test-c32isupper.sh: Likewise. * tests/test-c32isxdigit.sh: Likewise. * tests/test-c32rtomb.sh: Likewise. * tests/test-c32snrtombs-1.sh: Likewise. * tests/test-c32snrtombs-2.sh: Likewise. * tests/test-c32snrtombs-3.sh: Likewise. * tests/test-c32snrtombs-4.sh: Likewise. * tests/test-c32srtombs-1.sh: Likewise. * tests/test-c32srtombs-2.sh: Likewise. * tests/test-c32srtombs-3.sh: Likewise. * tests/test-c32srtombs-4.sh: Likewise. * tests/test-c32stombs-1.sh: Likewise. * tests/test-c32stombs-2.sh: Likewise. * tests/test-c32stombs-3.sh: Likewise. * tests/test-c32stombs-4.sh: Likewise. * tests/test-closein.sh: Likewise. * tests/test-copy-acl.sh (func_tmpdir): Likewise. * tests/test-copy-file.sh (func_tmpdir): Likewise. * tests/test-dprintf-posix.sh: Likewise. * tests/test-execl.sh: Likewise. * tests/test-execle.sh: Likewise. * tests/test-execlp.sh: Likewise. * tests/test-execv.sh: Likewise. * tests/test-execve.sh: Likewise. * tests/test-execvp.sh: Likewise. * tests/test-execvpe.sh: Likewise. * tests/test-file-has-acl.sh (func_tmpdir): Likewise. * tests/test-fprintf-posix.sh: Likewise. * tests/test-init.sh: Likewise. * tests/test-iswdigit.sh: Likewise. * tests/test-iswxdigit.sh: Likewise. * tests/test-mbmemcasecmp1.sh: Likewise. * tests/test-mbmemcasecmp2.sh: Likewise. * tests/test-mbmemcasecmp3.sh: Likewise. * tests/test-mbmemcasecoll1.sh: Likewise. * tests/test-mbmemcasecoll2.sh: Likewise. * tests/test-mbmemcasecoll3.sh: Likewise. * tests/test-mbrtoc32-1.sh: Likewise. * tests/test-mbrtoc32-2.sh: Likewise. * tests/test-mbrtoc32-3.sh: Likewise. * tests/test-mbrtoc32-4.sh: Likewise. * tests/test-mbrtowc1.sh: Likewise. * tests/test-mbrtowc2.sh: Likewise. * tests/test-mbrtowc3.sh: Likewise. * tests/test-mbrtowc4.sh: Likewise. * tests/test-mbscasecmp.sh: Likewise. * tests/test-mbscasestr2.sh: Likewise. * tests/test-mbscasestr3.sh: Likewise. * tests/test-mbscasestr4.sh: Likewise. * tests/test-mbschr.sh: Likewise. * tests/test-mbscspn.sh: Likewise. * tests/test-mbsinit.sh: Likewise. * tests/test-mbsncasecmp.sh: Likewise. * tests/test-mbsnrtoc32s-1.sh: Likewise. * tests/test-mbsnrtoc32s-2.sh: Likewise. * tests/test-mbsnrtoc32s-3.sh: Likewise. * tests/test-mbsnrtoc32s-4.sh: Likewise. * tests/test-mbsnrtowcs1.sh: Likewise. * tests/test-mbsnrtowcs2.sh: Likewise. * tests/test-mbsnrtowcs3.sh: Likewise. * tests/test-mbsnrtowcs4.sh: Likewise. * tests/test-mbspbrk.sh: Likewise. * tests/test-mbspcasecmp.sh: Likewise. * tests/test-mbsrchr.sh: Likewise. * tests/test-mbsrtoc32s-1.sh: Likewise. * tests/test-mbsrtoc32s-2.sh: Likewise. * tests/test-mbsrtoc32s-3.sh: Likewise. * tests/test-mbsrtoc32s-4.sh: Likewise. * tests/test-mbsrtowcs1.sh: Likewise. * tests/test-mbsrtowcs2.sh: Likewise. * tests/test-mbsrtowcs3.sh: Likewise. * tests/test-mbsrtowcs4.sh: Likewise. * tests/test-mbsspn.sh: Likewise. * tests/test-mbsstr2.sh: Likewise. * tests/test-mbsstr3.sh: Likewise. * tests/test-mbstoc32s-1.sh: Likewise. * tests/test-mbstoc32s-2.sh: Likewise. * tests/test-mbstoc32s-3.sh: Likewise. * tests/test-mbstoc32s-4.sh: Likewise. * tests/test-nl_langinfo.sh: Likewise. * tests/test-parse-duration.sh (func_tmpdir): Likewise. * tests/test-perror.sh: Likewise. * tests/test-printf-posix.sh: Likewise. * tests/test-set-mode-acl.sh (func_tmpdir): Likewise. * tests/test-setlocale1.sh: Likewise. * tests/test-strtod1.sh: Likewise. * tests/test-strtold1.sh: Likewise. * tests/test-unicodeio2.sh: Likewise. * tests/test-unicodeio3.sh: Likewise. * tests/test-vasnprintf-posix2.sh: Likewise. * tests/test-vc-list-files-cvs.sh: Likewise. * tests/test-vc-list-files-git.sh: Likewise. * tests/test-vdprintf-posix.sh: Likewise. * tests/test-vfprintf-posix.sh: Likewise. * tests/test-vprintf-posix.sh: Likewise. * tests/test-wcrtomb.sh: Likewise. * tests/test-wcsnrtombs1.sh: Likewise. * tests/test-wcsnrtombs2.sh: Likewise. * tests/test-wcsnrtombs3.sh: Likewise. * tests/test-wcsnrtombs4.sh: Likewise. * tests/test-wcsrtombs1.sh: Likewise. * tests/test-wcsrtombs2.sh: Likewise. * tests/test-wcsrtombs3.sh: Likewise. * tests/test-wcsrtombs4.sh: Likewise. * tests/test-xprintf-posix.sh: Likewise. * tests/test-xstrtoimax.sh: Likewise. * tests/test-xstrtol.sh: Likewise. * tests/test-xstrtoll.sh: Likewise. * tests/test-xstrtoumax.sh: Likewise. * tests/test-yesno.sh: Likewise. * tests/unicase/test-locale-language.sh: Likewise. * tests/unicase/test-ulc-casecmp1.sh: Likewise. * tests/unicase/test-ulc-casecmp2.sh: Likewise. * tests/unicase/test-ulc-casecoll1.sh: Likewise. * tests/unicase/test-ulc-casecoll2.sh: Likewise. * tests/unigbrk/test-ulc-grapheme-breaks.sh: Likewise. * tests/unistdio/test-u16-vasnprintf2.sh: Likewise. * tests/unistdio/test-u16-vasnprintf3.sh: Likewise. * tests/unistdio/test-u32-vasnprintf2.sh: Likewise. * tests/unistdio/test-u32-vasnprintf3.sh: Likewise. * tests/unistdio/test-u8-vasnprintf2.sh: Likewise. * tests/unistdio/test-u8-vasnprintf3.sh: Likewise. * tests/unistdio/test-ulc-vasnprintf2.sh: Likewise. * tests/unistdio/test-ulc-vasnprintf3.sh: Likewise. * tests/uniwbrk/test-ulc-wordbreaks.sh: Likewise. * tests/uniwidth/test-uc_width2.sh: Likewise.
* bootstrap: Comments.Bruno Haible2022-07-181-1/+3
| | | | * build-aux/bootstrap: Comment about two unused variables.
* announce-gen: Fix internationalization in verification instructions.Bruno Haible2022-07-101-1/+1
| | | | | * build-aux/announce-gen: Set LC_ALL, not LANG, to "C", to force English output from gpg.
* announce-gen: better diagnose some usage errorsJim Meyering2022-07-091-2/+6
| | | | | | | | | | | * build-aux/announce-gen (main): Erroneous usage would elicit a misleading diagnostic. When --gnulib-version=V was specified: - without --bootstrap-tools=..., or - with --bootstrap-tools=..., but without "gnulib" in that list we would give an inappropriate diagnostic. Now, each diagnostic is tailored to the precise erroneous condition. Reported by Bruno Haible in https://lists.gnu.org/r/bug-gnulib/2022-01/msg00025.html
* git-version-gen: Doc fix.Simon Josefsson2022-07-091-2/+2
| | | | | | | | Reported by Reuben Thomas <rrt@sc3d.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2022-04/msg00012.html>. * build-aux/git-version-gen (usage): Replace incorrect text with bug report instructions.
* announce-gen: Improve GnuPG verification instructions.Simon Josefsson2022-07-091-6/+30
| | | | | * build-aux/announce-gen: Add GPG fingerprint to output, and a pointer to GNU keyring.
* regex-quote: \] -> ] in EREs and BREsPaul Eggert2022-06-032-3/+3
| | | | | | | | | | | | | * 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.
* autoupdateKarl Berry2022-05-261-3/+6
|
* autoupdateKarl Berry2022-05-251-3/+3
|
* manywarnings: update C warnings for GCC 12Paul Eggert2022-05-121-1/+25
| | | | | | | | | Adjust for C programs compiled by GCC 12. (A C++ expert still needs to look at manywarnings-c++.m4.) * build-aux/gcc-warning.spec: Add warnings introduced in GCC 12. * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbidi-chars=any,ucn and -Wuse-after-free=3. Although not enabled by -Wall or -Wextra they seem suitable for Gnulib-using C code.
* autoupdateKarl Berry2022-05-091-8/+19
|
* autoupdateKarl Berry2022-04-101-22/+22
|
* maint: bootstrap: split a too-long lineJim Meyering2022-03-201-2/+3
| | | | * build-aux/bootstrap (git_modules_config): Split longer-than-80 line.
* announce-gen: Modernize GnuPG key retrieval suggestions.Simon Josefsson2022-03-141-4/+25
| | | | | | | | | | | Based on patch by Darshit Shah in: https://lists.gnu.org/archive/html/bug-gnulib/2022-03/msg00022.html * build-aux/announce-gen (usage): Add --gpg-key-email and --gpg-keyring-url. (main): Support the new options. (main): Don't suggest 'gpg --keyserver' since the situation with public key servers is complicated and GnuPG version dependent.
* autoupdateKarl Berry2022-02-091-0/+4
|
* maint: Update copyright noticesPaul Eggert2022-01-279-11/+11
| | | | | | | | | | * build-aux/announce-gen, build-aux/declared.sh: * build-aux/git-version-gen, build-aux/gitlog-to-changelog: * build-aux/gnu-web-doc-update, build-aux/gnupload: * build-aux/increment-serial, build-aux/libtool-next-version: * build-aux/useless-if-before-free: Update some copyright notices by hand, that were not updated automatically.
* bootstrap: update scriptversionPaul Eggert2022-01-251-2/+2
| | | | | | * build-aux/bootstrap: Update scriptversion. Problem reported by Bjarni Ingi Gislason in: https://lists.gnu.org/r/bug-gnulib/2022-01/msg00164.html
* autoupdateKarl Berry2022-01-191-1/+0
|
* autoupdateKarl Berry2022-01-134-4/+4
|
* autoupdateKarl Berry2022-01-101-3/+6
|
* bootstrap: When a commit is specified, do a shallow fetch if possible.Glenn Washburn2022-01-051-2/+18
| | | | | | | | | Rationale and explanation: <https://lists.gnu.org/archive/html/bug-gnulib/2021-10/msg00073.html>. * bootstrap: When a commit hash is specified, ask for this specific commit on fetch, and fallback to fetching the entire repository if fetching by commit hash fails.
* license: fix GPLv3 texts to use a comma instead of semicolon.Bernhard Voelker2022-01-0528-28/+28
| | | | | | | | | 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.
* autoupdateKarl Berry2022-01-031-25/+3
|
* maint: Update copyright notices.Bruno Haible2022-01-011-1/+1
| | | | * build-aux/declared.sh (func_version): Bump year.
* maint: run 'make update-copyright'Paul Eggert2022-01-0143-45/+45
|
* Fix --automake-subdir breakage (regression 2021-12-24).Bruno Haible2021-12-281-2/+2
| | | | | | | | Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in <https://lists.gnu.org/archive/html/bug-gnulib/2021-12/msg00156.html>. * build-aux/prefix-gnulib-mk (prefix_assignment): Don't change SED_HEADER_* variables.
* autoupdateKarl Berry2021-12-261-1/+6
|
* autoupdateKarl Berry2021-12-251-2/+2
|
* maint: break out '&& mv $@-t $@'Paul Eggert2021-12-241-3/+4
| | | | | | | * build-aux/git-version-gen, config/argz.mk, modules/configmake: * modules/posix_spawnp-tests, modules/snippet/link-warning: Break out '&& mv $@-t $@' to a separate line in the Make recipe, as this makes things a bit easier to debug.
* automake-subdir support: Support arbitrary --source-base value.Bruno Haible2021-12-151-1/+8
| | | | | | | | | Reported by Marc Nieper-Wißkirchen in <https://lists.gnu.org/archive/html/bug-gnulib/2021-12/msg00066.html>. * build-aux/prefix-gnulib-mk ($canon_prefix): New variable. (prefix): Initialize it. (prefix_assignment): Use it.
* Accommodate non-recursive Automake in a less hacky way.Bruno Haible2021-12-151-30/+51
| | | | | | | | | | | | | | | | | | | | | * gnulib-tool: New option --automake-subdir. (automake_subdir): New variable. (func_emit_initmacro_end): Add a second argument. Use it to prefix each object file name in *_LIBOBJS and *_LTLIBOBJS. (func_emit_shellvars_init): New function. (func_import): Add support for --automake-subdir. Invoke prefix-gnulib-mk. Update calls to func_emit_initmacro_end. Call func_emit_shellvars_init. (func_create_testdir): Update calls to func_emit_initmacro_end. Call func_emit_shellvars_init. * m4/gnulib-tool.m4 (gl_AUTOMAKE_SUBDIR): New macro. * m4/gnulib-common.m4 (gl_CONDITIONAL_HEADER): Use the value of the gl_source_base_prefix variable. * build-aux/prefix-gnulib-mk: New options --from-gnulib-tool, --prefix. (contents_of_file): Renamed from contents. (contents_of_stdin): New function. (process): Inline and remove function. * doc/gnulib-tool.texi (Non-recursive make): New section.
* non-recursive-gnulib-prefix-hack: Remove obsolete code.Bruno Haible2021-12-151-4/+0
| | | | * build-aux/prefix-gnulib-mk (prefix): Remove handling of t-$@ pattern.
* autoupdateKarl Berry2021-12-131-1/+1
|
* autoupdateKarl Berry2021-12-132-5/+9
|
* bootstrap: refactor for GNU tarPaul Eggert2021-12-121-110/+110
| | | | | | | * build-aux/bootstrap (gitignore_entries, insert_if_absent) (insert_vc_ignore, symlink_to_dir): Define these shell functions before including bootstrap.conf. This is for GNU tar, whose bootstrap.conf uses symlink_to_dir.
* autoupdateKarl Berry2021-11-081-116/+118
|
* autoupdate (belated)Karl Berry2021-10-281-110/+110
|
* autoupdateKarl Berry2021-08-211-5/+16
|
* gnulib-tool: Add support for Automake 1.16.4.Bruno Haible2021-08-082-9/+23
| | | | | | | | | | Reported by <shoober420@gmail.com> in <https://lists.gnu.org/archive/html/bug-libunistring/2021-08/msg00000.html>. * build-aux/test-driver-1.16.3.diff: Renamed from build-aux/test-driver.diff. * build-aux/test-driver.diff: Update to match Automake 1.16.4. * gnulib-tool (func_create_testdir, func_create_megatestdir): Try both .diff files.
* announce-gen: Text fix suggested by Paul Eggert.Simon Josefsson2021-08-041-3/+3
|
* announce-gen: Text fix suggested by Jim Meyering.Simon Josefsson2021-08-031-3/+3
|
* announce-gen: Print SHA1/B64(SHA256) instead of MD5/SHA1.Simon Josefsson2021-08-031-22/+11
| | | | | | | * build-aux/announce-gen (%digest_classes): Removed. (usage): Doc fix. (print_checksums): Instead of MD5/SHA1, print SHA1 and B64(SHA256), inspired by OpenSSH announcements.
* manywarnings: document GCC 11 warningsPaul Eggert2021-07-311-0/+22
| | | | | | * build-aux/gcc-warning.spec: Add warnings introduced in GCC 11. None of them require Gnulib code changes, so this is just a documentation change.
* gendocs.sh: Fix local rendering of HTML manuals.Simon Josefsson2021-07-191-3/+3
| | | | * build-aux/gendocs.sh (htmlarg): Don't use relative URLs.
* autoupdateKarl Berry2021-07-124-4/+4
|
* autoupdateKarl Berry2021-07-051-20/+29
|
* autoupdateKarl Berry2021-07-012-572/+618
|