Fix generation of manpages for the html doc package

Signed-off-by: Tom Eastep <teastep@shorewall.net>

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9792 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-04-04 00:27:33 +00:00
parent 9f90a9e38b
commit 1710621aeb

View File

@ -623,22 +623,20 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
do_export $MANPAGETAG manpages
mv manpages manpages.save
if [ -n "$MANPAGE6TAG" ]; then
do_export $MANPAGE6TAG manpages
do_or_die mv manpages/* manpages.save/
fi
do_export $MANPAGE6TAG manpages
do_or_die mv manpages manpages6.save/
do_export $LITEMANPAGETAG manpages
do_or_die mv manpages/* manpages.save/
if [ -n "$LITE6MANPAGETAG" ]; then
do_export $LITE6MANPAGETAG manpages
do_or_die mv manpages/* manpages.save/
fi
do_export $LITE6MANPAGETAG manpages
do_or_die mv manpages/* manpages6.save/
do_or_die rm -rf manpages
do_or_die rm -rf manpages6
do_or_die mv manpages.save manpages
do_or_die mv manpages.save manpages
do_or_die mv manpages6.save manpages6
cd $DIR
@ -738,12 +736,15 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
do_or_die xsltproc --output $f --stringparam html.stylesheet html.css --stringparam ulink.target _self $GENTOC -param toc.section.depth 3 $STYLESHEET $file
done
for f in shorewall-docs-xml-$VERSION/manpages/*.xml; do
if [ $f != shorewall-template.xml ]; then
progress_message "Generating HTML from $f..."
do_or_die xsltproc --output ${f%.xml}.html --stringparam html.stylesheet html.css --stringparam ulink.target _self -param toc.section.depth 3 $STYLESHEET $f
fi
for f in shorewall-docs-xml-$VERSION/manpages/*.xml shorewall-docs-xml-$VERSION/manpages6/*.xml; do
case $f in
*template.xml)
;;
*)
progress_message "Generating HTML from $f..."
do_or_die xsltproc --output ${f%.xml}.html --stringparam html.stylesheet html.css --stringparam ulink.target _self -param toc.section.depth 3 $STYLESHEET $f
;;
esac
done
progress_message "Copying manpages to $DIR/$HTMLDIR/images ..."
@ -752,6 +753,10 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
do_or_die cp -a shorewall-docs-xml-$VERSION/manpages/*.html $HTMLDIR/manpages/
do_or_die rm -f shorewall-docs-xml-$VERSION/manpages/*.html
do_or_die mkdir $HTMLDIR/manpages6
do_or_die cp -a shorewall-docs-xml-$VERSION/manpages6/*.html $HTMLDIR/manpages6/
do_or_die rm -f shorewall-docs-xml-$VERSION/manpages6/*.html
progress_message "Copying images to $DIR/$HTMLDIR/images ..."
do_or_die cp -a shorewall-docs-xml-$VERSION/images/*.png $HTMLDIR/images