File: mkappendix.sh

package info (click to toggle)
cluster-agents 1%3A1.0.3-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,828 kB
  • sloc: sh: 19,423; ansic: 3,174; perl: 3,135; makefile: 367
file content (18 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

cat <<EOF
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<appendix id="ap-ra-man-pages">
  <title>Resource agent manual pages</title>
EOF

for manpage in `printf "%s\n" $@ | sort -f`; do
    cat <<EOF
  <xi:include href="./$manpage" xmlns:xi="http://www.w3.org/2001/XInclude"/>
EOF
done

cat <<EOF
</appendix>
EOF