1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

52968: use pdfroff to create intro.pdf

roff2ps is removed in groff-1.23.0 (Jul. 2023). The "doubled output"
problem was fixed in groff-1.22.3 (Nov. 2014).
This commit is contained in:
Jun-ichi Takimoto 2024-06-24 12:54:08 +09:00
parent a3b56d4f03
commit 98a877d32c
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,7 @@
2024-06-24 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 52968: Doc/Makefile.in: use pdfroff to create intro.pdf
2024-06-13 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> 2024-06-13 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 52951: Src/builtin.c: make sure to close memstream for 'print -v' * 52951: Src/builtin.c: make sure to close memstream for 'print -v'

View file

@ -118,15 +118,13 @@ zsh.pdf zsh_a4.pdf zsh_us.pdf: $(sdir)/zsh.texi
$(TEXI2PDF) -o $@ -t @afourpaper $(sdir)/zsh.texi; \ $(TEXI2PDF) -o $@ -t @afourpaper $(sdir)/zsh.texi; \
fi fi
# Use roff2ps / ps2pdf because pdfroff produces doubled output.
intro.pdf intro.a4.pdf intro.us.pdf: $(sdir)/intro.ms intro.pdf intro.a4.pdf intro.us.pdf: $(sdir)/intro.ms
if test $@ = intro.us.pdf || \ if test $@ = intro.us.pdf || \
{ test $@ = intro.pdf && test "$(PAPERSIZE)" = us; }; then \ { test $@ = intro.pdf && test "$(PAPERSIZE)" = us; }; then \
roff2ps -ms -P-pletter < $(sdir)/intro.ms > intro.ps; \ pdfroff -ms -P-pletter $(sdir)/intro.ms > $@; \
else \ else \
roff2ps -ms -P-pa4 < $(sdir)/intro.ms > intro.ps; \ pdfroff -ms -P-pa4 $(sdir)/intro.ms > $@; \
fi; \ fi
ps2pdf -sOutputFile=$@ intro.ps
texi: $(sdir)/zsh.texi texi: $(sdir)/zsh.texi
.PHONY: texi .PHONY: texi