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

[Xen-changelog] [xen-unstable] docs: install text documentation



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1319705722 -3600
# Node ID 7648496d4ff12d41a8445c2b125173906d25bce7
# Parent  e3bd1c4184e513ca19e1f2e11803004015ed0d15
docs: install text documentation

Including markdown docs.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---


diff -r e3bd1c4184e5 -r 7648496d4ff1 .hgignore
--- a/.hgignore Thu Oct 27 09:55:14 2011 +0100
+++ b/.hgignore Thu Oct 27 09:55:22 2011 +0100
@@ -57,6 +57,7 @@
 ^docs/user/labels\.pl$
 ^docs/user/user\.css$
 ^docs/user/user\.html$
+^docs/txt/.*$
 ^docs/xen-api/vm_lifecycle.eps$
 ^docs/xen-api/xenapi-datamodel-graph.eps$
 ^docs/xen-api/xenapi.out$
diff -r e3bd1c4184e5 -r 7648496d4ff1 docs/Makefile
--- a/docs/Makefile     Thu Oct 27 09:55:14 2011 +0100
+++ b/docs/Makefile     Thu Oct 27 09:55:22 2011 +0100
@@ -16,13 +16,16 @@
 DOC_PDF                := $(patsubst src/%.tex,pdf/%.pdf,$(DOC_TEX))
 DOC_HTML       := $(patsubst src/%.tex,html/%/index.html,$(DOC_TEX)) \
                   $(patsubst %.markdown,html/%.html,$(DOC_MARKDOWN))
+DOC_TXT         := $(patsubst %.txt,txt/%.txt,$(wildcard misc/*.txt)) \
+                  $(patsubst %.markdown,txt/%.txt,$(DOC_MARKDOWN))
+
 GFX = $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
 
 .PHONY: all
 all: build
 
 .PHONY: build
-build: ps pdf html man-pages
+build: ps pdf html txt man-pages
        @if which $(DOT) 1>/dev/null 2>/dev/null ; then              \
        $(MAKE) -C xen-api build ; else                              \
         echo "Graphviz (dot) not installed; skipping xen-api." ; fi
@@ -40,6 +43,9 @@
 .PHONY: html
 html: $(DOC_HTML)
 
+.PHONY: txt
+txt: $(DOC_TXT)
+
 .PHONY: python-dev-docs
 python-dev-docs:
        @mkdir -v -p api/tools/python
@@ -122,3 +128,13 @@
        echo "Running markdown to generate $*.html ... "; \
        $(MARKDOWN) $< > $@.tmp ; \
        $(call move-if-changed,$@.tmp,$@) ; fi
+
+txt/%.txt: %.txt
+       $(INSTALL_DIR) $(@D)
+       cp $< $@.tmp
+       $(call move-if-changed,$@.tmp,$@)
+
+txt/%.txt: %.markdown
+       $(INSTALL_DIR) $(@D)
+       cp $< $@.tmp
+       $(call move-if-changed,$@.tmp,$@)

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


 


Rackspace

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