Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 5.0.0 released, finally



On Wed, 25 Jul 2012 22:57:09 +0200
Simon Ruderich <simon@xxxxxxxxxxxx> wrote:
> Should we switch to the roff2ps & ps2pdf approach for the
> Doc/Makefile? Then we won't ship the doubled PDF in the doc
> package. The website needs a4 and us-letter (and their PS
> versions), so maybe something like this:
> 
>     roff2ps -ms -P-pa4 < intro.ms > intro.a4.ps && ps2pdf intro.a4.ps
>     roff2ps -ms -P-pletter < intro.ms > intro.us.ps && ps2pdf intro.us.ps

Yes, that looks OK.
 
> Is it possible to create HTML files from a roff file? My attempts
> with roff2html failed.

I've never looked at this.

Index: Doc/.distfiles
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/.distfiles,v
retrieving revision 1.11
diff -p -u -r1.11 .distfiles
--- Doc/.distfiles	14 Apr 2012 20:42:39 -0000	1.11
+++ Doc/.distfiles	25 Jul 2012 21:14:11 -0000
@@ -18,5 +18,5 @@ DISTFILES_DOC='
     *.html
     zsh.dvi
     zsh.pdf
-    intro.pdf
+    intro.a4.pdf intro.us.pdf
 '
Index: Doc/Makefile.in
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.50
diff -p -u -r1.50 Makefile.in
--- Doc/Makefile.in	14 Apr 2012 20:42:39 -0000	1.50
+++ Doc/Makefile.in	25 Jul 2012 21:14:11 -0000
@@ -94,7 +94,7 @@ dvi: zsh.dvi
 zsh.dvi: $(sdir)/zsh.texi
 	$(TEXI2DVI) $(sdir)/zsh.texi
 
-pdf: zsh.pdf intro.pdf
+pdf: zsh.pdf intro.a4.pdf intro.us.pdf
 .PHONY: pdf
 
 zsh.pdf: $(sdir)/zsh.texi
@@ -104,8 +104,14 @@ zsh.pdf: $(sdir)/zsh.texi
 	  PDFTEX=$(PDFETEX) $(TEXI2DVI) --pdf $(sdir)/zsh.texi; \
 	fi
 
-intro.pdf: $(sdir)/intro.ms
-	pdfroff -ms $(sdir)/intro.ms >intro.pdf
+# Use roff2ps / ps2pdf because pdfroff produces doubled output.
+intro.a4.pdf: $(sdir)/intro.ms
+	roff2ps -ms -P-pa4 < $(sdir)/intro.ms > intro.a4.ps
+	ps2pdf intro.a4.ps
+
+intro.us.pdf: $(sdir)/intro.ms
+	roff2ps -ms -P-pletter < $(sdir)/intro.ms > intro.us.ps
+	ps2pdf intro.us.ps
 
 texi: $(sdir)/zsh.texi
 .PHONY: texi


-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author