]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.sh: Use a default auxdir in --extract-automake-snippet.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Mar 2024 00:37:30 +0000 (01:37 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 24 Mar 2024 00:37:30 +0000 (01:37 +0100)
* gnulib-tool.sh (extract-automake-snippet): Set auxdir to 'build-aux'
if it is not set.

ChangeLog
gnulib-tool.sh

index c032a315f8bf2eedf56032b55915d5e661627939..0f8f5bb12179ef695221a0eff1d3d13252b66aa6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-23  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.sh: Use a default auxdir in --extract-automake-snippet.
+       * gnulib-tool.sh (extract-automake-snippet): Set auxdir to 'build-aux'
+       if it is not set.
+
 2024-03-23  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.py: Don't unnecessarily sort an EXTRA_DIST augmentation.
index d3b1cc710d4e1d13f84a948d7dad84caae3f3115..ba9ee83e74da9b41ca1051cf8a680d5060babb44 100755 (executable)
@@ -2579,6 +2579,7 @@ func_get_automake_snippet_conditional ()
 # Input:
 # - local_gnulib_path  from --local-dir
 # - modcache          true or false, from --cache-modules/--no-cache-modules
+# - auxdir            directory relative to destdir where to place build aux files
 func_get_automake_snippet_unconditional ()
 {
   case "$1" in
@@ -2664,6 +2665,7 @@ func_get_automake_snippet_unconditional ()
 # Input:
 # - local_gnulib_path  from --local-dir
 # - modcache          true or false, from --cache-modules/--no-cache-modules
+# - auxdir            directory relative to destdir where to place build aux files
 func_get_automake_snippet ()
 {
   func_get_automake_snippet_conditional "$1"
@@ -7573,6 +7575,7 @@ s/\([.*$]\)/[\1]/g'
     ;;
 
   extract-automake-snippet )
+    test -n "$auxdir" || auxdir="build-aux"
     for module
     do
       func_verify_module