aboutsummaryrefslogtreecommitdiff
path: root/doc/clients/Makefile.am
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 17:43:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 17:43:34 +0000
commit27480026516cd5cc863f8d4115e59c5854cb07e7 (patch)
tree420fd34d6ba5175eee7a572fab8cc6cfffaba34d /doc/clients/Makefile.am
parent30395fef3fa529fab7645a49b776d3536ab674ce (diff)
downloadpaludis-27480026516cd5cc863f8d4115e59c5854cb07e7.tar.gz
paludis-27480026516cd5cc863f8d4115e59c5854cb07e7.tar.xz
Create cave html pages via asciidoc
Diffstat (limited to 'doc/clients/Makefile.am')
-rw-r--r--doc/clients/Makefile.am22
1 files changed, 12 insertions, 10 deletions
diff --git a/doc/clients/Makefile.am b/doc/clients/Makefile.am
index af9353b2b..3de65d2a8 100644
--- a/doc/clients/Makefile.am
+++ b/doc/clients/Makefile.am
@@ -119,25 +119,27 @@ appareo.html : header.html.part footer.html.part
cave.html : header.html.part footer.html.part
{ cat header.html.part && { \
- if test -x $(top_builddir)/src/clients/cave/man-cave ; then \
- env CAVE_COMMANDS_PATH="" $(top_builddir)/src/clients/cave/man-cave --html | \
- sed -e '/<h2>See Also<.h2>/,/<.ul>/s#<strong>\(.*\)</strong> (1)#<a href="\1.html">\1</a>#'; \
+ if test -f $(top_builddir)/src/clients/cave/cave.html-man-fragment ; then \
+ cat $(top_builddir)/src/clients/cave/cave.html-man-fragment ; \
+ elif test -f $(top_srcdir)/src/clients/cave/cave.html-man-fragment ; then \
+ cat $(top_srcdir)/src/clients/cave/cave.html-man-fragment ; \
else \
echo "<h1>cave</h1>"; \
echo "<p>Sorry, documentation was generated without support for the cave client.</p>" ; \
- fi ; } && \
- cat footer.html.part ; } > $@
+ fi ; } | sed -e '/<h2>SEE ALSO<.h2>/,/<.div>/s#<span class="strong"><strong>\(.*\)</strong></span>(1)#<a href="\1.html">\1</a>#' \
+ && cat footer.html.part ; } > $@
$(CAVE_COMMANDS_HTML) : header.html.part footer.html.part
{ cat header.html.part && { \
- if test -x $(top_builddir)/src/clients/cave/man-cave ; then \
- basename $@ .html | sed -e 's,^cave-,,' | xargs env CAVE_COMMANDS_PATH="" $(top_builddir)/src/clients/cave/man-cave --html | \
- sed -e '/<h2>See Also<.h2>/,/<.ul>/s#<strong>\(.*\)</strong> (1)#<a href="\1.html">\1</a>#'; \
+ if test -f $(top_builddir)/src/clients/cave/`basename $@ .html `.html-man-fragment ; then \
+ cat $(top_builddir)/src/clients/cave/`basename $@ .html `.html-man-fragment ; \
+ elif test -f $(top_srcdir)/src/clients/cave/`basename $@ .html `.html-man-fragment ; then \
+ cat $(top_srcdir)/src/clients/cave/`basename $@ .html `.html-man-fragment ; \
else \
echo "<h1>cave</h1>"; \
echo "<p>Sorry, documentation was generated without support for the cave client.</p>" ; \
- fi ; } && \
- cat footer.html.part ; } > $@
+ fi ; } | sed -e '/<h2>SEE ALSO<.h2>/,/<.div>/s#<span class="strong"><strong>\(.*\)</strong></span>(1)#<a href="\1.html">\1</a>#' \
+ && cat footer.html.part ; } > $@
instruo.html : header.html.part footer.html.part
{ cat header.html.part && { \