mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 15:46:55 +02:00
Switch man page generation from docbook2x to xmlto
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8619 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
c4c96fa66a
commit
1844d9bbc7
@ -69,10 +69,6 @@ GPG="/usr/bin/gpg -ab --batch --comment 'To verify this, you can download our pu
|
|||||||
# SVN Repository
|
# SVN Repository
|
||||||
#
|
#
|
||||||
SVN=https://shorewall.svn.sourceforge.net/svnroot/shorewall
|
SVN=https://shorewall.svn.sourceforge.net/svnroot/shorewall
|
||||||
#
|
|
||||||
# Program that generates man pages from Docbook XML
|
|
||||||
#
|
|
||||||
DOCBOOK2MAN="docbook-to-man --encoding=UTF-8 -C /usr/share/docbook2X/xslt/catalog.xml --utf8trans-map /usr/share/docbook2X/charmaps/roff.charmap"
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# V A R I A B L E S
|
# V A R I A B L E S
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -474,11 +470,19 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
|||||||
for f in *.xml; do
|
for f in *.xml; do
|
||||||
if [ $f != shorewall-template.xml ]; then
|
if [ $f != shorewall-template.xml ]; then
|
||||||
progress_message "Generating Man Page from $f..."
|
progress_message "Generating Man Page from $f..."
|
||||||
$DOCBOOK2MAN $f
|
do_or_die xmlto --skip-validation man $f
|
||||||
|
case $f in
|
||||||
|
*.conf.*|shorewall.xml)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
g=${f#shorewall-}
|
||||||
|
h=$(ls ${g%.xml}.[58])
|
||||||
|
mv $h shorewall-$h
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm *.xml
|
rm *.xml
|
||||||
perl -p -i'' -e 's/ \[.*?html\]//g' *.5 *.8
|
|
||||||
cd $DIR
|
cd $DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -490,11 +494,19 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
|||||||
for f in *.xml; do
|
for f in *.xml; do
|
||||||
if [ $f != shorewall-template.xml ]; then
|
if [ $f != shorewall-template.xml ]; then
|
||||||
progress_message "Generating Man Page from $f..."
|
progress_message "Generating Man Page from $f..."
|
||||||
$DOCBOOK2MAN $f
|
do_or_die xmlto --skip-validation man $f
|
||||||
|
case $f in
|
||||||
|
*.conf.*|shorewall-lite.xml)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
g=${f#shorewall-lite-}
|
||||||
|
h=$(ls ${g%.xml}.[58])
|
||||||
|
mv $h shorewall-lite-$h
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm *.xml
|
rm *.xml
|
||||||
perl -p -i'' -e 's/ \[.*?html\]//g' *.5 *.8
|
|
||||||
cd $DIR
|
cd $DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user