WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 17 of 17] docs: install txt files as html

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 17 of 17] docs: install txt files as html
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Thu, 17 Nov 2011 15:02:03 +0000
Cc: ian.jackson@xxxxxxxxxx
Delivery-date: Thu, 17 Nov 2011 07:33:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1321542106@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1321542106@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.6.4
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1321542098 0
# Node ID 83fc69637135353021aaacc96ded8fbbad1a4244
# Parent  bd514e08c509dd62a1db26318782ab37646788f5
docs: install txt files as html

A browser will display them just fine.

NB: I'm not totally sure about this since many of the *.txt docs are out of
date or deeply technical etc. It might be preferable to simply add the minimal
necessary markdown to the ones we actually want to publish.

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

diff -r bd514e08c509 -r 83fc69637135 docs/INDEX
--- a/docs/INDEX        Thu Nov 17 15:01:37 2011 +0000
+++ b/docs/INDEX        Thu Nov 17 15:01:38 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 bd514e08c509 -r 83fc69637135 docs/Makefile
--- a/docs/Makefile     Thu Nov 17 15:01:37 2011 +0000
+++ b/docs/Makefile     Thu Nov 17 15:01:38 2011 +0000
@@ -17,7 +17,8 @@ DOC_PDF               := $(patsubst src/%.tex,pdf/%.p
 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)) \
@@ -138,6 +139,10 @@ html/%.html: %.markdown
        $(MARKDOWN) $< > $@ ; 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=$@

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