man-page-fileserver-update-20080311
[openafs.git] / doc / xml / AdminReference / generate-xml.sh
1 #!/bin/sh
2
3 PODSRC=/scratch/chas/openafs/doc/man-pages
4 SECTS='1 5 8'
5
6 for sect in ${SECTS}
7 do
8         #rm -f head${sect}.xml
9         #rm -f body${sect}.xml
10
11         if [ ! -d sect${sect} ]; then
12                 mkdir sect${sect}
13         fi
14
15         for pod in ${PODSRC}/pod${sect}/*.pod
16         do
17                 base=`basename $pod`
18                 xml=`echo $base | sed -e 's/\.pod/.xml/'`
19                 echo ./pod2refentry -section=$sect $pod sect${sect}/${xml}
20                 ./pod2refentry -section=$sect $pod sect${sect}/${xml}
21
22                 #tag=`echo $xml | sed -e 's/\.xml//'`
23                 #echo "<!ENTITY ${tag}${sect} SYSTEM \"sect${sect}/$xml\">" >> head${sect}.xml
24                 #echo "    &${tag}${sect};" >> body${sect}.xml
25         done
26 done