mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 16:13:18 +01:00
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:
parent
9f90a9e38b
commit
1710621aeb
@ -623,22 +623,20 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
|
|||||||
do_export $MANPAGETAG manpages
|
do_export $MANPAGETAG manpages
|
||||||
mv manpages manpages.save
|
mv manpages manpages.save
|
||||||
|
|
||||||
if [ -n "$MANPAGE6TAG" ]; then
|
|
||||||
do_export $MANPAGE6TAG manpages
|
do_export $MANPAGE6TAG manpages
|
||||||
do_or_die mv manpages/* manpages.save/
|
do_or_die mv manpages manpages6.save/
|
||||||
fi
|
|
||||||
|
|
||||||
do_export $LITEMANPAGETAG manpages
|
do_export $LITEMANPAGETAG manpages
|
||||||
do_or_die mv manpages/* manpages.save/
|
do_or_die mv manpages/* manpages.save/
|
||||||
|
|
||||||
if [ -n "$LITE6MANPAGETAG" ]; then
|
|
||||||
do_export $LITE6MANPAGETAG manpages
|
do_export $LITE6MANPAGETAG manpages
|
||||||
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 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
|
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
|
do_or_die xsltproc --output $f --stringparam html.stylesheet html.css --stringparam ulink.target _self $GENTOC -param toc.section.depth 3 $STYLESHEET $file
|
||||||
done
|
done
|
||||||
|
|
||||||
for f in shorewall-docs-xml-$VERSION/manpages/*.xml; do
|
for f in shorewall-docs-xml-$VERSION/manpages/*.xml shorewall-docs-xml-$VERSION/manpages6/*.xml; do
|
||||||
if [ $f != shorewall-template.xml ]; then
|
case $f in
|
||||||
|
*template.xml)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
progress_message "Generating HTML from $f..."
|
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
|
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
|
done
|
||||||
|
|
||||||
progress_message "Copying manpages to $DIR/$HTMLDIR/images ..."
|
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 cp -a shorewall-docs-xml-$VERSION/manpages/*.html $HTMLDIR/manpages/
|
||||||
do_or_die rm -f shorewall-docs-xml-$VERSION/manpages/*.html
|
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 ..."
|
progress_message "Copying images to $DIR/$HTMLDIR/images ..."
|
||||||
|
|
||||||
do_or_die cp -a shorewall-docs-xml-$VERSION/images/*.png $HTMLDIR/images
|
do_or_die cp -a shorewall-docs-xml-$VERSION/images/*.png $HTMLDIR/images
|
||||||
|
Loading…
Reference in New Issue
Block a user