From: Thomas Schneider <thosch97@gmail.com>
To: git@vger.kernel.org
Cc: Thomas Schneider <thosch97@gmail.com>
Subject: [PATCH] Documentation: Add target to build PDF manpages
Date: Fri, 20 Mar 2015 12:23:04 +0100 [thread overview]
Message-ID: <1426850584-9951-1-git-send-email-thosch97@gmail.com> (raw)
Signed-off-by: Thomas Schneider <thosch97@gmail.com>
---
dblatex does print some warnings, but they seem to be irrelevant.
Besides, first patch I submit to git or even to any project using a
mailing list … let’s hope I did everything right :)
Documentation/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 3e39e28..158cbd9 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -38,6 +38,7 @@ MAN7_TXT += gitworkflows.txt
MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)
MAN_XML = $(patsubst %.txt,%.xml,$(MAN_TXT))
MAN_HTML = $(patsubst %.txt,%.html,$(MAN_TXT))
+MAN_PDF = $(patsubst %.txt,%.pdf,$(MAN_TXT))
OBSOLETE_HTML += everyday.html
OBSOLETE_HTML += git-remote-helpers.html
@@ -223,7 +224,7 @@ man7: $(DOC_MAN7)
info: git.info gitman.info
-pdf: user-manual.pdf
+pdf: user-manual.pdf $(MAN_PDF)
install: install-man
@@ -248,6 +249,7 @@ install-info: info
install-pdf: pdf
$(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir)
$(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir)
+ $(INSTALL) -m 644 $(MAN_PDF) $(DESTDIR)$(pdfdir)
install-html: html
'$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
@@ -328,6 +330,11 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
$(QUIET_XMLTO)$(RM) $@ && \
$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
+%.pdf: %.xml
+ $(QUIET_DBLATEX)$(RM) $@+ $@ && \
+ $(DBLATEX) -o $@+ -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty $< && \
+ mv $@+ $@
+
%.xml : %.txt asciidoc.conf
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
$(TXT_TO_XML) -d manpage -o $@+ $< && \
--
2.1.0
next reply other threads:[~2015-03-20 11:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-20 11:23 Thomas Schneider [this message]
2015-03-20 17:19 ` [PATCH] Documentation: Add target to build PDF manpages Stefan Beller
2015-03-20 19:32 ` Philip Oakley
2015-03-20 20:21 ` Junio C Hamano
2015-03-20 21:18 ` Thomas Schneider
2015-03-20 21:28 ` Junio C Hamano
2015-03-20 21:54 ` Thomas Schneider
2015-03-20 22:15 ` Philip Oakley
2015-03-20 22:19 ` Stefan Beller
2015-03-20 22:38 ` Junio C Hamano
2015-03-23 15:46 ` Michael J Gruber
2015-03-24 23:28 ` Philip Oakley
2015-03-25 11:43 ` Thomas Schneider
2015-03-20 22:42 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426850584-9951-1-git-send-email-thosch97@gmail.com \
--to=thosch97@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).