summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile')
-rw-r--r--Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile78
1 files changed, 57 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile b/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile
index 9eaf220b9ce..e50c84652ee 100644
--- a/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile
+++ b/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile 617 2018-04-30 14:16:52Z jimhefferon $
+# $Id: Makefile 706 2018-10-13 15:35:22Z jimhefferon $
# Public domain. Originally written 2006, Karl Berry.
# Makefile for latexrefman.
@@ -24,13 +24,20 @@ texi2pdf = texi2pdf --batch --tidy --build-dir=$*.t2pdf
#
makeinfo = makeinfo
texi2docbook = $(makeinfo) --docbook
-texi2html = $(makeinfo) --html --no-split --css-include=latex2e.css $(texi2html_top)
+texi2html = $(makeinfo) --no-split $(htmlopts)
texi2info = $(makeinfo) --no-split
texi2txt = $(makeinfo) --plaintext --no-split
texi2xml = $(makeinfo) --xml
#
-# Go somewhere useful from Top.
-texi2html_top = -c TOP_NODE_UP_URL=http://tug.org/texinfohtml/
+htmlopts = --html --css-include=latex2e.css $(t2html_top) $(t2html_home) -c WORDS_IN_PAGE=10000
+#
+# Go somewhere useful from Top:
+t2html_top = -c TOP_NODE_UP_URL=http://tug.org/texinfohtml/
+#
+# Put a link in the footer:
+t2html_home = -c PRE_BODY_CLOSE="<hr/><div class='referenceinfo'>\
+<a href='https://latexref.xyz/'>\
+<i>Unofficial LaTeX2e reference manual</i></a></div>"
%.pdf: %.texi
$(texi2pdf) $<
@@ -70,33 +77,57 @@ fr: $(fr_mi_output) $(fr_tex_output)
# To build everything in all languages.
all: en es fr
-# following the GNU sequence of clean targets.
+# Sort of following the GNU sequence of clean targets.
distclean clean mostlyclean:
- rm -rf latex2e*.t2*
+ rm -rf latex2e*.t2* latex2e-help-texinfo-tree*
realclean maintainer-clean: distclean
rm -f $(addprefix latex2e*., pdf dvi $(mi_suffixes) $(xref_suffixes))
-# dist for CTAN. Also update NEWS
+# dist for CTAN. Update NEWS before uploading!
#
-txt_files = ChangeLog Makefile NEWS README aspell.en.pws ltx-help.el
+txt_files = ChangeLog Makefile NEWS README \
+ aspell.en.pws latex2e.css ltx-help.el
+# html_files = index.html mirroring.html writing.html
figure_files = list.eps list.pdf list.png list.txt
figure_source_files = asy/list.asy
-dist = latex2e-help-texinfo.zip
+distname = latex2e-help-texinfo
+distzip = $(distname).zip
+#
+htmlsplit = $(distname)-tree
+htmlsplitzip = $(htmlsplit).zip
#
dist: en es
- mkdir latex2e-help-texinfo && cd latex2e-help-texinfo && ln -s ../* .
- mkdir latex2e-help-texinfo/spanish && cd latex2e-help-texinfo/spanish && ln -s ../../* .
- rm -f $(dist)
- zip -q $(dist) \
-$(addprefix latex2e-help-texinfo/, $(txt_files) \
- latex2e.texi common.texi $(en_mi_output) latex2e.pdf) \
-$(addprefix latex2e-help-texinfo/spanish/, $(es_mi_output) latex2e-es.pdf) \
-$(addprefix latex2e-help-texinfo/latex2e-figures/, $(figure_files)) \
-$(addprefix latex2e-help-texinfo/graphics/, README $(figure_source_files))
- rm -rf latex2e-help-texinfo
- @ls -l $(dist); unzip -l $(dist)
+ rm -rf $(distname)
+ mkdir $(distname) && cd $(distname) && ln -s ../* .
+ mkdir $(distname)/spanish && cd $(distname)/spanish && ln -s ../../* .
+ rm -f $(distzip)
+ zip -q $(distzip) \
+$(addprefix $(distname)/, $(txt_files) \
+ latex2e.texi common.texi $(en_mi_output) latex2e.pdf) \
+$(addprefix $(distname)/spanish/, $(es_mi_output) latex2e-es.pdf) \
+$(addprefix $(distname)/latex2e-figures/, $(figure_files)) \
+$(addprefix $(distname)/graphics/, README $(figure_source_files))
+ rm -rf $(distname)
+ @ls -l $(distzip); unzip -l $(distzip)
+
+# Get many small .html files
+htmlsplit: en
+ rm -rf $(htmlsplit)
+ mkdir $(htmlsplit) && cd $(htmlsplit) && ln -s ../* .
+ rm -f $(htmlsplitzip)
+ cd $(htmlsplit) && $(makeinfo) $(htmlopts) latex2e.texi
+ cd $(htmlsplit) && zip -q ../$(htmlsplitzip) -r latex2e
+ src/easyurls.py --directory $(htmlsplit)/latex2e --action softlink --lower_case --rewrite_index
+# rm -rf $(htmlsplit)
+# @ls -l $(htmlsplitzip); unzip -l $(htmlsplitzip)
+
+# Right before a commit, delete html files that are gone and and add new ones
+htmlsplitstatus = cd $(htmlsplit)/latex2e && svn status *.html
+commitready: htmlsplit
+ $(htmlsplitstatus) | sed -n 's/^\!//p' | xargs -r svn rm
+ $(htmlsplitstatus) | sed -n 's/^\?//p' | xargs -r svn add
# A hacky spell check target.
# Remove \commandnames to reduce exception list, but not {args} or
@@ -108,12 +139,17 @@ spell spell-en:
# Check for doubled words.
# http://www.math.utah.edu/~beebe/software/file-tools.html#dw
+# The first sed expression elides a few @-command lines which cause
+# duplicates; the second expr some text in the middle of lines.
check-dw:
- grep -v '^@item' latex2e.texi | dw
+ sed -e 's/^@\(item\|anchor\|.index\) .*//' \
+ -e 's/ da da\|{test test}\|[iI][jJ]//g' \
+ latex2e.texi | dw
# Convenience targets to svn revert the generated files,
# and svn diff the source files.
svr:
svn revert $(addprefix latex2e*., $(all_suffixes))
+ svn status
svd:
svn diff $(txt_files) *.texi