Fix generation of shorewall6 manpages in html doc package

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

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9793 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-04-04 02:52:22 +00:00
parent 1710621aeb
commit 421c5fba05

View File

@ -879,6 +879,9 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
cd shorewall-docs-xml-$VERSION
rm -rf manpages.save
rm -rf manpages6.save
progress_message "Exporting $MANPAGETAG from SVN..."
do_or_die "svn export --non-interactive --force ${SVN}/$MANPAGETAG manpages >> $LOGFILE 2>&1"
mv manpages manpages.save
@ -886,7 +889,7 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
if [ -n "$MANPAGE6TAG" ]; then
progress_message "Exporting $MANPAGE6TAG from SVN..."
do_or_die "svn export --non-interactive --force ${SVN}/$MANPAGE6TAG manpages >> $LOGFILE 2>&1"
do_or_die mv manpages/* manpages.save/
do_or_die mv manpages/* manpages6.save/
fi
progress_message "Exporting $LITEMANPAGETAG from SVN..."
@ -896,12 +899,14 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
if [ -n "$LITE6MANPAGETAG" ]; then
progress_message "Exporting $LITE6MANPAGETAG from SVN..."
do_or_die "svn export --non-interactive --force ${SVN}/$LITE6MANPAGETAG manpages >> $LOGFILE 2>&1"
do_or_die mv manpages/* manpages.save/
do_or_die mv manpages/* manpages6.save/
fi
do_or_die rm -rf manpages
do_or_die rm -rf manpages6
do_or_die mv manpages.save manpages
do_or_die mv manpages6.save manpages6
cd $DIR
@ -1008,12 +1013,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
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
fi
;;
esac
done
progress_message "Copying manpages to $DIR/$HTMLDIR/images ..."
@ -1022,6 +1030,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