Problem reported by Sergey Poznyakoff in: https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00002.html * build-aux/gendocs.sh (html_split): Do not create symlink from index.html to ${PACKAGE}.html if the former exists or the latter does not. --- ChangeLog | 9 +++++++++ build-aux/gendocs.sh | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 5b31898d06..3b1613fb0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2025-11-08 Paul Eggert <[email protected]> + + gendocs: port better to texi2html 5.0 + Problem reported by Sergey Poznyakoff in: + https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00002.html + * build-aux/gendocs.sh (html_split): Do not create symlink + from index.html to ${PACKAGE}.html if the former exists + or the latter does not. + 2025-11-06 Collin Funk <[email protected]> renameat, renameatu: Work around GNU/Hurd bugs. diff --git a/build-aux/gendocs.sh b/build-aux/gendocs.sh index b5e4cfb193..ef98023102 100755 --- a/build-aux/gendocs.sh +++ b/build-aux/gendocs.sh @@ -2,7 +2,7 @@ # gendocs.sh -- generate a GNU manual in many formats. This script is # mentioned in maintain.texi. See the help message below for usage details. -scriptversion=2025-06-09.19 +scriptversion=2025-11-08.12 # Copyright 2003-2025 Free Software Foundation, Inc. # @@ -346,7 +346,8 @@ html_split() split_html_dir=$PACKAGE.html ( cd ${split_html_dir} || exit 1 - ln -sf ${PACKAGE}.html index.html + test -f index.html || test ! -f ${PACKAGE}.html || + ln -s ${PACKAGE}.html index.html tar -czf "$abs_outdir/${PACKAGE}.html_$1.tar.gz" -- *.html ) eval html_$1_tgz_size=`calcsize "$outdir/${PACKAGE}.html_$1.tar.gz"` -- 2.51.0
