143
|
1 #!/bin/sh
|
|
2 if [ $# -ne 1 ]; then
|
|
3 echo " Usage: buildman commandname"
|
|
4 echo " The result is in file r1.html"
|
|
5 exit 1
|
|
6 fi
|
|
7 cat - > temp$$ <<wrapper
|
|
8 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
|
|
9 <!ENTITY replstart "<">
|
|
10 <!ENTITY replend ">">
|
|
11 <!ENTITY repeatst "{">
|
|
12 <!ENTITY repeaten "}">
|
|
13 <!ENTITY quot CDATA "">
|
|
14 <!ENTITY refentrypage SYSTEM "$1.refentry">
|
|
15 ]>
|
|
16 <article>
|
|
17 &refentrypage;
|
|
18 </article>
|
|
19 wrapper
|
|
20 docbook2man temp$$
|
|
21 rm temp$$
|