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

[Xen-changelog] [xen-unstable] docs: install html and txt versions of manpages



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1322576247 0
# Node ID bca64f372e4f76a85a9f0fa9f2a59ded1b6bb206
# Parent  0cfdb398d2f646a4a61d435bc1fdd6ecb28600b0
docs: install html and txt versions of manpages

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 0cfdb398d2f6 -r bca64f372e4f docs/Docs.mk
--- a/docs/Docs.mk      Tue Nov 29 14:17:27 2011 +0000
+++ b/docs/Docs.mk      Tue Nov 29 14:17:27 2011 +0000
@@ -5,6 +5,8 @@
 LATEX2HTML     := latex2html
 DOXYGEN                := doxygen
 POD2MAN                := pod2man
+POD2HTML       := pod2html
+POD2TEXT       := pod2text
 DOT            := dot
 NEATO          := neato
 MARKDOWN       := markdown
diff -r 0cfdb398d2f6 -r bca64f372e4f docs/Makefile
--- a/docs/Makefile     Tue Nov 29 14:17:27 2011 +0000
+++ b/docs/Makefile     Tue Nov 29 14:17:27 2011 +0000
@@ -15,9 +15,13 @@
 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 @@
        $(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 @@
        $(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 @@
        $(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-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®.