Hi Bruno,

Am Do., 24. Juli 2025 um 12:29 Uhr schrieb Bruno Haible <br...@clisp.org>:
>
> Hi Marc,
>
> Marc Nieper-Wißkirchen asked:
> > What is the suggested workflow for "gnulib-tool --copy-file",
> > described in chapter 20 of the manual? Am I supposed to add the copied
> > file under version control so that a fresh checkout works out of the
> > box?
>
> While some packages may do that, the main use of gnulib-tool is with
> packages that *don't* put imported and generated files under version control.
>
> > Or is it the idea to add an invocation to 'gnulib-tool --copy-file" to
> > bootstrap_post_import_hook? If that is the case, may I suggest adding
> > a bootstrap variable, say, "gnulib_files" that will cause bootstrap to
> > copy the files automatically?
>
> Such a variable already exists; it's called 'gnulib_extra_files'.
> See e.g. [1][2].

Thank you; that is very helpful.

> Documentation improvement patch welcome!

[...]

Minimal documentation for the variable is provided by the attached
patch. It should point the user to the right place to look. More
extensive documentation should also cover gnulib_modules and the other
hooks in bootstrap; however, this requires dedicated time to write.

diff --git a/ChangeLog b/ChangeLog
index 33bd581f88..0344d64640 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-07-24  Marc Nieper-Wißkirchen  <m...@nieper-wisskirchen.de>
+
+       bootstrap: Provide minimal documentation for gnulib_extra_files.
+       * build-aux/bootstrap.conf (gnulib_extra_files): Provide a
+       template to customize gnulib_extra_files, similar to how
+       gnulib_modules is already handled.
+
 2025-07-23  Collin Funk  <collin.fu...@gmail.com>

        posixtm tests: Avoid test failure on Haiku.
diff --git a/build-aux/bootstrap.conf b/build-aux/bootstrap.conf
index cdb25f22a5..d39465aa09 100644
--- a/build-aux/bootstrap.conf
+++ b/build-aux/bootstrap.conf
@@ -20,6 +20,10 @@
 gnulib_modules="
 "

+# Extra files from gnulib.
+gnulib_extra_files="$gnulib_extra_files
+"
+
 # Additional xgettext options to use.  Use "\\\newline" to break lines.
 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
  --flag=asnprintf:3:c-format\\\

Reply via email to