view docs/ccguide/buildman @ 633:14e792902588

Convert to Docbook XML format
author roug
date Sun, 08 Dec 2002 11:09:09 +0000
parents bea58398bb15
children 06e11c941478
line wrap: on
line source

#!/bin/sh
if [ $# -ne 1 ]; then
   echo "  Usage: buildman commandname"
   echo "  The result is in file r1.html"
   exit 1
fi
# <!ENTITY quot CDATA  "&#22;">
cat -  > temp$$ <<wrapper
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
  <!ENTITY replstart "&lt;">
  <!ENTITY replend   "&gt;">
  <!ENTITY repeatst   "{">
  <!ENTITY repeaten   "}">
  <!ENTITY refentrypage SYSTEM "$1.refentry">
 ]>
<article>
&refentrypage;
</article>
wrapper
xmlto man temp$$ 
rm temp$$