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 04 of 17] docs: install html and txt versions of manp

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 04 of 17] docs: install html and txt versions of manpages
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Thu, 17 Nov 2011 15:01:50 +0000
Cc: ian.jackson@xxxxxxxxxx
Delivery-date: Thu, 17 Nov 2011 07:24:25 -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 1321540451 0
# Node ID f3fc909a083ddcea05cd0c9ab51a7241e573f6a6
# Parent  e8f0094323d0edcf8e35573f37b74beab5694bd3
docs: install html and txt versions of manpages

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

diff -r e8f0094323d0 -r f3fc909a083d docs/Docs.mk
--- a/docs/Docs.mk      Thu Nov 17 14:34:11 2011 +0000
+++ b/docs/Docs.mk      Thu Nov 17 14:34:11 2011 +0000
@@ -5,6 +5,8 @@ FIG2DEV         := fig2dev
 LATEX2HTML     := latex2html
 DOXYGEN                := doxygen
 POD2MAN                := pod2man
+POD2HTML       := pod2html
+POD2TEXT       := pod2text
 DOT            := dot
 NEATO          := neato
 MARKDOWN       := markdown
diff -r e8f0094323d0 -r f3fc909a083d docs/Makefile
--- a/docs/Makefile     Thu Nov 17 14:34:11 2011 +0000
+++ b/docs/Makefile     Thu Nov 17 14:34:11 2011 +0000
@@ -15,9 +15,13 @@ DOC_MARKDOWN := $(wildcard misc/*.markdo
 DOC_PS         := $(patsubst src/%.tex,ps/%.ps,$(DOC_TEX))
 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))
+                  $(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))
 DOC_TXT         := $(patsubst %.txt,txt/%.txt,$(wildcard misc/*.txt)) \
-                  $(patsubst %.markdown,txt/%.txt,$(DOC_MARKDOWN))
+                  $(patsubst %.markdown,txt/%.txt,$(DOC_MARKDOWN)) \
+                  $(patsubst man/%.pod.1,txt/man/%.1.txt,$(DOC_MAN1SRC)) \
+                  $(patsubst man/%.pod.5,txt/man/%.5.txt,$(DOC_MAN5SRC))
 
 GFX = $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
 
@@ -76,7 +80,7 @@ clean:
        $(MAKE) -C xen-api clean
        rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~ 
        rm -rf *.ilg *.log *.ind *.toc *.bak core
-       rm -rf $(GFX) ps pdf html
+       rm -rf $(GFX) ps pdf html txt
        rm -rf api
        rm -rf man5
        rm -rf man1
@@ -132,6 +136,16 @@ html/%.html: %.markdown
        $(call move-if-changed,$@.tmp,$@) ; 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,$@)
+
+html/man/%.5.html: man/%.pod.5 Makefile
+       $(INSTALL_DIR) $(@D)
+       $(POD2HTML) --infile=$< --outfile=$@.tmp
+       $(call move-if-changed,$@.tmp,$@)
+
 txt/%.txt: %.txt
        $(INSTALL_DIR) $(@D)
        cp $< $@.tmp
@@ -141,3 +155,14 @@ txt/%.txt: %.markdown
        $(INSTALL_DIR) $(@D)
        cp $< $@.tmp
        $(call move-if-changed,$@.tmp,$@)
+
+txt/man/%.1.txt: man/%.pod.1 Makefile
+       $(INSTALL_DIR) $(@D)
+       $(POD2TEXT) $< $@.tmp
+       $(call move-if-changed,$@.tmp,$@)
+
+txt/man/%.5.txt: man/%.pod.5 Makefile
+       $(INSTALL_DIR) $(@D)
+       $(POD2TEXT) $< $@.tmp
+       $(call move-if-changed,$@.tmp,$@)
+

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

<Prev in Thread] Current Thread [Next in Thread>