diff options
author | Bruno Haible <bruno@clisp.org> | 2019-02-14 03:13:34 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-02-14 03:13:34 +0100 |
commit | a42bbf190c359fada7822d05c3703374147440aa (patch) | |
tree | b6ec0acd1474d440d6001006aafb919045b07976 /libtextstyle/doc | |
parent | 4808ef0b329113afd213b85fbedba98ad549c719 (diff) | |
download | gettext-a42bbf190c359fada7822d05c3703374147440aa.tar.gz |
libtextstyle: Fix hyperlinks to table of contents in HTML doc.
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.
Diffstat (limited to 'libtextstyle/doc')
-rw-r--r-- | libtextstyle/doc/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
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; \ } |