From: Bruno Haible Date: Thu, 14 Feb 2019 02:13:34 +0000 (+0100) Subject: libtextstyle: Fix hyperlinks to table of contents in HTML doc. X-Git-Tag: v0.20~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a42bbf190c359fada7822d05c3703374147440aa;p=thirdparty%2Fgettext.git libtextstyle: Fix hyperlinks to table of contents in HTML doc. Reported by Akim Demaille . * libtextstyle/doc/Makefile.am (libunistring_toc.html): Replace references to libtextstyle.html with references to libtextstyle_toc.html. --- diff --git a/libtextstyle/doc/Makefile.am b/libtextstyle/doc/Makefile.am index 21364ee3c..b228ee115 100644 --- a/libtextstyle/doc/Makefile.am +++ b/libtextstyle/doc/Makefile.am @@ -142,7 +142,9 @@ libtextstyle_toc.html: libtextstyle.texi version.texi $(libtextstyle_TEXINFOS) $(TEXI2HTML) $(TEXINCLUDES) -no-sec-nav -no-menu -toc-links -number -split_chapter `if test -f libtextstyle.texi; then echo libtextstyle.texi; else echo $(srcdir)/libtextstyle.texi; fi` ;; \ esac \ && { mv libtextstyle/libtextstyle.html libtextstyle_toc.html; \ - mv libtextstyle/*.html .; \ + for file in libtextstyle/*.html; do \ + sed -e 's/libtextstyle\.html/libtextstyle.html/g' < $$file > `basename $$file` && rm -f $$file; \ + done; \ rmdir libtextstyle; \ }