summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e29f90)
raw | patch | inline | side by side (parent: 8e29f90)
author | Jeff King <peff@peff.net> | |
Fri, 1 Jun 2007 09:10:30 +0000 (05:10 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 2 Jun 2007 18:28:13 +0000 (11:28 -0700) |
Instead of using sed on the resulting file, we now have a
git_version asciidoc attribute. This means that we don't
pipe the output of asciidoc, which means we can detect build
failures.
Problem reported by Scott Lamb, solution suggested by Jonas Fonseca.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git_version asciidoc attribute. This means that we don't
pipe the output of asciidoc, which means we can detect build
failures.
Problem reported by Scott Lamb, solution suggested by Jonas Fonseca.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/Makefile | patch | blob | history | |
Documentation/asciidoc.conf | patch | blob | history |
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 3f92783d55b401a5c919f7c9176a12953d0c4904..4064b38c447a6927df407288bc187f3a30f66bdb 100644 (file)
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
%.html : %.txt
rm -f $@+ $@
$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf \
- $(ASCIIDOC_EXTRA) -o - $< | \
- sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' >$@+
+ $(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $<
mv $@+ $@
%.1 %.5 %.7 : %.xml
%.xml : %.txt
rm -f $@+ $@
$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
- $(ASCIIDOC_EXTRA) -o - $< | \
- sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' >$@+
+ $(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $<
mv $@+ $@
user-manual.xml: user-manual.txt user-manual.conf
index fa7dc94845be148dd85dfc2265dade2093a6c11f..60e15ba3494b93f2c956356d3d5fd905385d0c1f 100644 (file)
<refentrytitle>{mantitle}</refentrytitle>
<manvolnum>{manvolnum}</manvolnum>
<refmiscinfo class="source">Git</refmiscinfo>
-<refmiscinfo class="version">@@GIT_VERSION@@</refmiscinfo>
+<refmiscinfo class="version">{git_version}</refmiscinfo>
<refmiscinfo class="manual">Git Manual</refmiscinfo>
</refmeta>
<refnamediv>