]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libtextstyle: Fix hyperlinks to table of contents in HTML doc.
authorBruno Haible <bruno@clisp.org>
Thu, 14 Feb 2019 02:13:34 +0000 (03:13 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 14 Feb 2019 02:13:34 +0000 (03:13 +0100)
Reported by Akim Demaille <akim.demaille@gmail.com>.

* libtextstyle/doc/Makefile.am (libunistring_toc.html): Replace references to
libtextstyle.html with references to libtextstyle_toc.html.

libtextstyle/doc/Makefile.am

index 21364ee3c82723761fb4a21065cf4c12b63bb84d..b228ee115518f7e6242fad4942398d2128730d44 100644 (file)
@@ -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; \
           }