]> Savannah Git Hosting - gnulib.git/commitdiff
gendocs: allow spaces, metacharacters and quotes in source file names
authorPatrice Dumas <pertusus@free.fr>
Sat, 27 Jan 2024 16:38:07 +0000 (17:38 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Jan 2024 16:38:07 +0000 (17:38 +0100)
* build-aux/gendocs.sh: output files to tar stdin and use -T- to allow
spaces, metacharacters and quotes in file names.  Bruno Haible
solution.

ChangeLog
build-aux/gendocs.sh

index da748f4f3d6b790b44e82ba42d49aa53fdb6ace6..7f40b7c6b9306a8f579cd7fb6e61e8b810b2882a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-01-27  Patrice Dumas  <pertusus@free.fr>
+
+       gendocs: allow spaces, metacharacters and quotes in source file names
+       * build-aux/gendocs.sh: output files to tar stdin and use -T- to allow
+       spaces, metacharacters and quotes in file names.  Bruno Haible
+       solution.
+
 2024-01-27  Patrice Dumas  <pertusus@free.fr>
 
        gendocs: fix --no-html
index 779b4840e51555501e429066cc29e4e9a0bc14d2..605c7e31941c901bba2f244b48b2c669ccafd273 100755 (executable)
@@ -417,8 +417,8 @@ printf "\nMaking .tar.gz for sources...\n"
 d=`dirname $srcfile`
 (
   cd "$d"
-  srcfiles=`ls -d *.texinfo *.texi *.txi *.eps $source_extra 2>/dev/null` || true
-  tar czfh "$abs_outdir/$PACKAGE.texi.tar.gz" $srcfiles
+  ls -d *.texinfo *.texi *.txi *.eps "$source_extra" 2>/dev/null \
+     | tar -czhf "$abs_outdir/$PACKAGE.texi.tar.gz" -T-
   ls -l "$abs_outdir/$PACKAGE.texi.tar.gz"
 )
 texi_tgz_size=`calcsize "$outdir/$PACKAGE.texi.tar.gz"`