mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-06 03:30:35 +00:00
Change how pdf doc's are created
Currently the pdf docs are done with
sgml -> sgmltool -> tex -> latex -> dvi -> dvips -> ps -> ps2pdf -> pdf
or
tex -> latex -> dvi -> dvips -> ps -> ps2pdf -> pdf
with this patch we do
sgml -> sgmltool -> tex -> pdflatex -> pdf
or
tex -> pdflatex -> pdf
This commit is contained in:
parent
27bca61531
commit
0ecf26fc7d
22
doc/Makefile
22
doc/Makefile
@ -6,7 +6,7 @@ PSFILES=ip-cref.ps ip-tunnels.ps api-ip6-flowlabels.ps ss.ps nstat.ps arpd.ps rt
|
||||
|
||||
LATEX=latex
|
||||
DVIPS=dvips
|
||||
SGML2DVI=sgml2latex --output=dvi
|
||||
SGML2DVI=sgml2latex
|
||||
SGML2HTML=sgml2html -s 0
|
||||
LPR=lpr -Zsduplex
|
||||
SHELL=bash
|
||||
@ -31,8 +31,11 @@ pdf: $(PDFFILES)
|
||||
print: $(PSFILES)
|
||||
$(LPR) $(PSFILES)
|
||||
|
||||
%.tex: %.sgml
|
||||
$(SGML2DVI) --output=tex $<
|
||||
|
||||
%.dvi: %.sgml
|
||||
$(SGML2DVI) $<
|
||||
$(SGML2DVI) --output=dvi $<
|
||||
|
||||
%.dvi: %.tex
|
||||
@set -e; pass=2; echo "Running LaTeX $<"; \
|
||||
@ -44,10 +47,17 @@ print: $(PSFILES)
|
||||
echo "Re-running LaTeX $<, $${pass}d pass"; pass=$$[$$pass + 1]; \
|
||||
done
|
||||
|
||||
#%.pdf: %.tex
|
||||
# pdflatex $<
|
||||
%.pdf: %.ps
|
||||
ps2pdf $<
|
||||
%.pdf: %.tex
|
||||
@set -e; pass=2; echo "Running pdfLaTeX $<"; \
|
||||
while [ `pdflatex $< </dev/null 2>&1 | \
|
||||
grep -c '^\(LaTeX Warning: Label(s) may\|No file \|! Emergency stop\)'` -ge 1 ]; do \
|
||||
if [ $$pass -gt 3 ]; then \
|
||||
echo "Seems, something is wrong. Try by hands." ; exit 1 ; \
|
||||
fi; \
|
||||
echo "Re-running pdfLaTeX $<, $${pass}d pass"; pass=$$[$$pass + 1]; \
|
||||
done
|
||||
#%.pdf: %.ps
|
||||
# ps2pdf $<
|
||||
|
||||
%.ps: %.dvi
|
||||
$(DVIPS) $< -o $@
|
||||
|
||||
Loading…
Reference in New Issue
Block a user