From 21c2ea5e607d4f37cb607ba0270daca8c5465238 Mon Sep 17 00:00:00 2001 From: Patrice Dumas Date: Sat, 27 Jan 2024 17:38:07 +0100 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ build-aux/gendocs.sh | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index da748f4f3d..7f40b7c6b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-01-27 Patrice Dumas + + 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 gendocs: fix --no-html diff --git a/build-aux/gendocs.sh b/build-aux/gendocs.sh index 779b4840e5..605c7e3194 100755 --- a/build-aux/gendocs.sh +++ b/build-aux/gendocs.sh @@ -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"` -- 2.39.5