aboutsummaryrefslogtreecommitdiff
path: root/src/clients/instruo/Makefile.am
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 18:53:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 19:20:24 +0000
commit6509d233883f44495f8601d0cb9d1302aa800c77 (patch)
tree5c34d16bf83b3d7153098962bacdec100b67e5e4 /src/clients/instruo/Makefile.am
parentc3422ce17ce50a73427b5457e9ff4998b7fd401d (diff)
downloadpaludis-6509d233883f44495f8601d0cb9d1302aa800c77.tar.gz
paludis-6509d233883f44495f8601d0cb9d1302aa800c77.tar.xz
Use asciidoc for instruo html
Diffstat (limited to 'src/clients/instruo/Makefile.am')
-rw-r--r--src/clients/instruo/Makefile.am19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/clients/instruo/Makefile.am b/src/clients/instruo/Makefile.am
index 4d920356e..4c565f6ee 100644
--- a/src/clients/instruo/Makefile.am
+++ b/src/clients/instruo/Makefile.am
@@ -18,9 +18,10 @@ SUFFIXES = .1 .txt .xml
man_MANS_txts = instruo.txt
man_MANS_xmls = instruo.xml
+man_MANS_html_man_fragments = instruo.html-man-fragment
$(man_MANS_txts) : man-instruo
- if ! ./man-instruo --asciidoc `echo $@ | sed -e 's.^instruo-*..' -e 's,\.txt$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
+ if ! ./man-instruo `echo $@ | sed -e 's.^instruo-*..' -e 's,\.txt$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
.txt.xml : $(man_MANS_txts)
asciidoc --doctype=manpage --backend=docbook --out-file=$@ $<
@@ -28,6 +29,15 @@ $(man_MANS_txts) : man-instruo
.xml.1 : $(man_MANS_xmls)
xmlto man $<
+.xml.html-man-fragment : $(man_MANS_xmls)
+ xmlto html $< -o $@-dir
+ sed \
+ -e '1s,^.*\(<div class="refnamediv">\),\1,' \
+ -e '$$s,</body>.*,,' -e '$$s,</div><div class="navfooter"><hr></div>,,' \
+ -e 's,<a name="[^"]*"></a>,,g' \
+ $@-dir/index.html > $@
+ rm -fr $@-dir
+
man_instruo_SOURCES = \
man_instruo.cc \
command_line.hh \
@@ -54,13 +64,16 @@ instruo_LDADD = \
TESTS = version_TEST \
help_TEST
+noinst_DATA = $(man_MANS_html_man_fragments)
+
EXTRA_DIST = \
$(man_MANS) \
+ $(man_MANS_html_man_fragments) \
$(TESTS)
DISTCLEANFILES = \
$(man_MANS) \
- $(noinst_DATA) \
$(man_MANS_txts) \
- $(man_MANS_xmls)
+ $(man_MANS_xmls) \
+ $(man_MANS_html_man_fragments)