summaryrefslogtreecommitdiff
path: root/libtextstyle/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-02-14 03:13:34 +0100
committerBruno Haible <bruno@clisp.org>2019-02-14 03:13:34 +0100
commita42bbf190c359fada7822d05c3703374147440aa (patch)
treeb6ec0acd1474d440d6001006aafb919045b07976 /libtextstyle/doc
parent4808ef0b329113afd213b85fbedba98ad549c719 (diff)
downloadgettext-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.am4
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; \
}