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

[Xen-changelog] [xen-unstable] docs: install txt files as html



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1322576247 0
# Node ID 70c6aa688faf0da81bbde899bb442a9f4c7f80d8
# Parent  71ecbef5645f799233415bdd625a5a09957096a1
docs: install txt files as html

A browser will display them just fine.

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


diff -r 71ecbef5645f -r 70c6aa688faf docs/INDEX
--- a/docs/INDEX        Tue Nov 29 15:21:23 2011 +0000
+++ b/docs/INDEX        Tue Nov 29 14:17:27 2011 +0000
@@ -1,5 +1,7 @@
 misc/hvm-emulated-unplug       Xen HVM emulated device unplug protocol
 
+misc/console.txt               Xen PV Console notes
+
 # These are not all that useful anymore, hide them from the index
 reference/interface/index      NO-INDEX
 reference/user/index           NO-INDEX
diff -r 71ecbef5645f -r 70c6aa688faf docs/Makefile
--- a/docs/Makefile     Tue Nov 29 15:21:23 2011 +0000
+++ b/docs/Makefile     Tue Nov 29 14:17:27 2011 +0000
@@ -17,7 +17,8 @@
 DOC_HTML       := $(patsubst src/%.tex,html/reference/%/index.html,$(DOC_TEX)) 
\
                   $(patsubst %.markdown,html/%.html,$(DOC_MARKDOWN)) \
                   $(patsubst man/%.pod.1,html/man/%.1.html,$(DOC_MAN1SRC)) \
-                  $(patsubst man/%.pod.5,html/man/%.5.html,$(DOC_MAN5SRC))
+                  $(patsubst man/%.pod.5,html/man/%.5.html,$(DOC_MAN5SRC)) \
+                  $(patsubst %.txt,html/%.txt,$(wildcard misc/*.txt))
 DOC_TXT         := $(patsubst %.txt,txt/%.txt,$(wildcard misc/*.txt)) \
                   $(patsubst %.markdown,txt/%.txt,$(DOC_MARKDOWN)) \
                   $(patsubst man/%.pod.1,txt/man/%.1.txt,$(DOC_MAN1SRC)) \
@@ -139,6 +140,10 @@
        $(call move-if-changed,$@.tmp,$@) ; else \
        echo "markdown not installed; skipping $*.html."; fi
 
+html/%.txt: %.txt
+       @$(INSTALL_DIR) $(@D)
+       cp $< $@
+
 html/man/%.1.html: man/%.pod.1 Makefile
        $(INSTALL_DIR) $(@D)
        $(POD2HTML) --infile=$< --outfile=$@.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®.