mirror of
https://github.com/openharmony/third_party_gettext.git
synced 2026-07-01 10:25:03 -04:00
doc: Use a version of texi2html which is under a good license.
Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>. * gettext-tools/doc/texi2html: Copied from texi2html-1.78, with changes made in libunistring/build-aux/texi2html and then in libtextstyle/build-aux/texi2html. * gettext-tools/doc/gettext.texi: Enable the Top node during texi2html processing. * gettext-tools/doc/Makefile.am (gettext.html): Use texi2html options -no-sec-nav -no-menu -toc-links. (gettext_toc.html): Likewise. Pull out generated files out of subdirectory.
This commit is contained in:
+2
-1
@@ -390,9 +390,10 @@
|
||||
/gettext-tools/doc/stamp-vti
|
||||
/gettext-tools/doc/gettext.info
|
||||
/gettext-tools/doc/gettext_toc.html
|
||||
/gettext-tools/doc/gettext_foot.html
|
||||
/gettext-tools/doc/gettext_fot.html
|
||||
/gettext-tools/doc/gettext_[0-9].html
|
||||
/gettext-tools/doc/gettext_[0-9][0-9].html
|
||||
/gettext-tools/doc/gettext_abt.html
|
||||
/gettext-tools/emacs/*.elc
|
||||
/gettext-tools/examples/po/gettext-examples.pot
|
||||
/gettext-tools/examples/po/stamp-po
|
||||
|
||||
@@ -189,15 +189,21 @@ html-split: gettext_toc.html
|
||||
# We want to use texi2html, not makeinfo --html.
|
||||
# Newer versions of texi2html also need the options --no-menu --no-sec-nav.
|
||||
gettext.html: gettext.texi version.texi $(gettext_TEXINFOS)
|
||||
$(TEXI2HTML) $(TEXINCLUDES) -number -monolithic `if test -f gettext.texi; then echo gettext.texi; else echo $(srcdir)/gettext.texi; fi`
|
||||
$(TEXI2HTML) $(TEXINCLUDES) -no-sec-nav -no-menu -toc-links -number -monolithic $(srcdir)/gettext.texi
|
||||
|
||||
gettext_toc.html: gettext.texi version.texi $(gettext_TEXINFOS)
|
||||
case "@PERL@" in \
|
||||
*"/missing perl") \
|
||||
$(TEXI2HTML) $(TEXINCLUDES) -number -split_chapter `if test -f gettext.texi; then echo gettext.texi; else echo $(srcdir)/gettext.texi; fi` || exit 0 ;; \
|
||||
$(TEXI2HTML) $(TEXINCLUDES) -no-sec-nav -no-menu -toc-links -number -split_chapter $(srcdir)/gettext.texi || exit 0 ;; \
|
||||
*) $(RM) gettext_*.html ; \
|
||||
$(TEXI2HTML) $(TEXINCLUDES) -number -split_chapter `if test -f gettext.texi; then echo gettext.texi; else echo $(srcdir)/gettext.texi; fi` ;; \
|
||||
esac
|
||||
$(TEXI2HTML) $(TEXINCLUDES) -no-sec-nav -no-menu -toc-links -number -split_chapter $(srcdir)/gettext.texi ;; \
|
||||
esac \
|
||||
&& { mv gettext/gettext.html gettext_toc.html; \
|
||||
for file in gettext/*.html; do \
|
||||
sed -e 's/gettext\.html/gettext_toc.html/g' < $$file > `basename $$file` && rm -f $$file; \
|
||||
done; \
|
||||
rmdir gettext; \
|
||||
}
|
||||
|
||||
install-html-monolithic: gettext.html
|
||||
$(MKDIR_P) $(DESTDIR)$(htmldir)
|
||||
|
||||
@@ -139,7 +139,7 @@ A copy of the license is included in @ref{GNU GPL}.
|
||||
@c Table of Contents
|
||||
@contents
|
||||
|
||||
@ifset makeinfo
|
||||
@ifnottex
|
||||
@node Top
|
||||
@top GNU @code{gettext} utilities
|
||||
|
||||
@@ -520,7 +520,7 @@ Licenses
|
||||
@end detailmenu
|
||||
@end menu
|
||||
|
||||
@end ifset
|
||||
@end ifnottex
|
||||
|
||||
@node Introduction
|
||||
@chapter Introduction
|
||||
|
||||
+19354
-1936
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user