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

Re: Z shell introductory guide source



Sorry for the delay. I slightly modified Doc/Makefie.in
(intro.ms is the same as in the previous post: workers/53137).

'make html' will build both zsh.html and intro.html.

If intro.ms is newer than intro.{pdf,html} and if pdfroff/groff
is not available, 'make intro.{pdf,html}' will fail without
touching intro.{pdf,html} (if they ever exist).


diff --git a/Doc/Makefile.in b/Doc/Makefile.in
index fa2a336ad..a986aa1c5 100644
--- a/Doc/Makefile.in
+++ b/Doc/Makefile.in
@@ -121,9 +121,16 @@ zsh.pdf zsh_a4.pdf zsh_us.pdf: $(sdir)/zsh.texi
 intro.pdf intro.a4.pdf intro.us.pdf: $(sdir)/intro.ms
 	if test $@ = intro.us.pdf || \
 	  { test $@ = intro.pdf && test "$(PAPERSIZE)" = us; }; then \
-	  pdfroff -ms -P-pletter $(sdir)/intro.ms > $@; \
+	  pdfroff -mspdf --no-kill-null-pages -P-pletter --pdf-output=$@ $<; \
 	else \
-	  pdfroff -ms -P-pa4 $(sdir)/intro.ms > $@; \
+	  pdfroff -mspdf --no-kill-null-pages -P-pa4 --pdf-output=$@ $<; \
+	fi
+
+intro.html: $(sdir)/intro.ms
+	if groff -ms -Thtml -P-jintro $< > tmp.html; then \
+	  mv tmp.html $@; \
+	else \
+	  rm -f tmp.html; false; \
 	fi
 
 texi: $(sdir)/zsh.texi
@@ -170,7 +177,7 @@ a4_ps: zsh_a4.ps
 zsh_a4.ps: zsh_a4.dvi
 	$(DVIPS) -t a4 -o $@ zsh_a4.dvi
 
-html: zsh_toc.html
+html: zsh_toc.html intro.html
 .PHONY: html
 
 zsh_toc.html: $(sdir)/zsh.texi texi2html.conf






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