[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 7 of 7] docs: generate docs direct into final filename



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1320678761 0
# Node ID e97a5f1943e0a3641f9415e15bdeb991cf1c3bdd
# Parent  83c6d49df549f663291dbf032de70d6bab149feb
docs: generate docs direct into final filename

Nothing depends on the final document so there is not much point in generating
to a tempfile and move-if-changed.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 83c6d49df549 -r e97a5f1943e0 docs/Makefile
--- a/docs/Makefile     Mon Nov 07 15:12:41 2011 +0000
+++ b/docs/Makefile     Mon Nov 07 15:12:41 2011 +0000
@@ -132,37 +132,30 @@ html/%.html: %.markdown
        @$(INSTALL_DIR) $(@D)
        @set -e ; if which $(MARKDOWN) 1>/dev/null 2>/dev/null; then \
        echo "Running markdown to generate $*.html ... "; \
-       $(MARKDOWN) $< > $@.tmp ; \
-       $(call move-if-changed,$@.tmp,$@) ; else \
+       $(MARKDOWN) $< > $@ ; else \
        echo "markdown not installed; skipping $*.html."; fi
 
 html/man/%.1.html: man/%.pod.1 Makefile
        $(INSTALL_DIR) $(@D)
-       $(POD2HTML) --infile=$< --outfile=$@.tmp
-       $(call move-if-changed,$@.tmp,$@)
+       $(POD2HTML) --infile=$< --outfile=$@
 
 html/man/%.5.html: man/%.pod.5 Makefile
        $(INSTALL_DIR) $(@D)
-       $(POD2HTML) --infile=$< --outfile=$@.tmp
-       $(call move-if-changed,$@.tmp,$@)
+       $(POD2HTML) --infile=$< --outfile=$@
 
 txt/%.txt: %.txt
        $(INSTALL_DIR) $(@D)
-       cp $< $@.tmp
-       $(call move-if-changed,$@.tmp,$@)
+       cp $< $@
 
 txt/%.txt: %.markdown
        $(INSTALL_DIR) $(@D)
-       cp $< $@.tmp
-       $(call move-if-changed,$@.tmp,$@)
+       cp $< $@
 
 txt/man/%.1.txt: man/%.pod.1 Makefile
        $(INSTALL_DIR) $(@D)
-       $(POD2TEXT) $< $@.tmp
-       $(call move-if-changed,$@.tmp,$@)
+       $(POD2TEXT) $< $@
 
 txt/man/%.5.txt: man/%.pod.5 Makefile
        $(INSTALL_DIR) $(@D)
-       $(POD2TEXT) $< $@.tmp
-       $(call move-if-changed,$@.tmp,$@)
+       $(POD2TEXT) $< $@
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.