mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-26 04:32:01 +02:00
Fix up base url for man pages
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9189 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
73230a582d
commit
a92a74a3c5
@ -115,6 +115,7 @@ BUILDSHELL=
|
|||||||
BUILDLITE=
|
BUILDLITE=
|
||||||
PATCHRELEASE=
|
PATCHRELEASE=
|
||||||
PATCHNUM=
|
PATCHNUM=
|
||||||
|
BASEURL=http://www.shorewall.net
|
||||||
|
|
||||||
SVN6BRANCH=
|
SVN6BRANCH=
|
||||||
SAMPLES6TAG=
|
SAMPLES6TAG=
|
||||||
@ -401,6 +402,7 @@ case $VERSION in
|
|||||||
SAMPLESTAG="tags/${BASEVERSION}/Samples"
|
SAMPLESTAG="tags/${BASEVERSION}/Samples"
|
||||||
MANPAGETAG="tags/${BASEVERSION}/manpages"
|
MANPAGETAG="tags/${BASEVERSION}/manpages"
|
||||||
LITEMANPAGETAG="tags/${BASEVERSION}/manpages-lite"
|
LITEMANPAGETAG="tags/${BASEVERSION}/manpages-lite"
|
||||||
|
BASEURL=http://www.shorewall.net/4.0
|
||||||
;;
|
;;
|
||||||
4.0.*)
|
4.0.*)
|
||||||
SVNBRANCH="branches/4.0/Shorewall-common"
|
SVNBRANCH="branches/4.0/Shorewall-common"
|
||||||
@ -412,6 +414,7 @@ case $VERSION in
|
|||||||
SAMPLESTAG="branches/4.0/Samples"
|
SAMPLESTAG="branches/4.0/Samples"
|
||||||
MANPAGETAG=branches/4.0/manpages
|
MANPAGETAG=branches/4.0/manpages
|
||||||
LITEMANPAGETAG=branches/4.0/manpages-lite
|
LITEMANPAGETAG=branches/4.0/manpages-lite
|
||||||
|
BASEURL=http://www.shorewall.net/4.0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported Version: $VERSION"
|
echo "Unsupported Version: $VERSION"
|
||||||
@ -606,16 +609,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..."
|
||||||
do_or_die "xmlto --skip-validation man $f >> $LOGFILE 2>&1"
|
do_or_die "xmlto --skip-validation --xsltopts "--stringparam" --xsltopts "man.base.url.for.relative.links" --xsltopts $BASEURL/manpages/ man $f >> $LOGFILE 2>&1"
|
||||||
case $f in
|
case $f in
|
||||||
*.conf.*|shorewall.xml)
|
*.conf.*|shorewall.xml)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
g=${f#shorewall-}
|
g=${f#shorewall-}
|
||||||
h=$(ls ${g%.xml}.[58])
|
h=$(ls ${g%.xml}.[58])
|
||||||
mv $h shorewall-$h
|
f=shorewall-$h
|
||||||
|
mv $h $f
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
perl -p -w -i -e 's|/(4\.0/)?manpages/\.\.||' $f
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm *.xml
|
rm *.xml
|
||||||
@ -631,16 +637,19 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
|||||||
for f in *.xml; do
|
for f in *.xml; do
|
||||||
if [ $f != shorewall6-template.xml ]; then
|
if [ $f != shorewall6-template.xml ]; then
|
||||||
progress_message "Generating Man Page from $f..."
|
progress_message "Generating Man Page from $f..."
|
||||||
do_or_die "xmlto --skip-validation man $f >> $LOGFILE 2>&1"
|
do_or_die "xmlto --skip-validation --xsltopts "--stringparam" --xsltopts "man.base.url.for.relative.links" --xsltopts $BASEURL/manpages6/ man $f >> $LOGFILE 2>&1"
|
||||||
case $f in
|
case $f in
|
||||||
*.conf.*|shorewall6.xml)
|
*.conf.*|shorewall6.xml)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
g=${f#shorewall6-}
|
g=${f#shorewall6-}
|
||||||
h=$(ls ${g%.xml}.[58])
|
h=$(ls ${g%.xml}.[58])
|
||||||
mv $h shorewall6-$h
|
f=shorewall6-$h
|
||||||
|
mv $h $f
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
perl -p -w -i -e 's|/manpages6/\.\.||' $f
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm *.xml
|
rm *.xml
|
||||||
@ -655,16 +664,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..."
|
||||||
do_or_die "xmlto --skip-validation man $f >> $LOGFILE 2>&1"
|
do_or_die "xmlto --skip-validation --xsltopts "--stringparam" --xsltopts "man.base.url.for.relative.links" --xsltopts $BASEURL/manpages/ man $f >> $LOGFILE 2>&1"
|
||||||
case $f in
|
case $f in
|
||||||
*.conf.*|shorewall-lite.xml)
|
*.conf.*|shorewall-lite.xml)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
g=${f#shorewall-lite-}
|
g=${f#shorewall-lite-}
|
||||||
h=$(ls ${g%.xml}.[58])
|
h=$(ls ${g%.xml}.[58])
|
||||||
mv $h shorewall-lite-$h
|
f=shorewall-lite-$h
|
||||||
|
mv $h $f
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
perl -p -w -i -e 's|/(4\.0/)?manpages/\.\.||' $f
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm *.xml
|
rm *.xml
|
||||||
@ -679,16 +691,19 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
|||||||
for f in *.xml; do
|
for f in *.xml; do
|
||||||
if [ $f != shorewall6-template.xml ]; then
|
if [ $f != shorewall6-template.xml ]; then
|
||||||
progress_message "Generating Man Page from $f..."
|
progress_message "Generating Man Page from $f..."
|
||||||
do_or_die "xmlto --skip-validation man $f >> $LOGFILE 2>&1"
|
do_or_die "xmlto --skip-validation --xsltopts "--stringparam" --xsltopts "man.base.url.for.relative.links" --xsltopts $BASEURL/manpages6/ man $f >> $LOGFILE 2>&1"
|
||||||
case $f in
|
case $f in
|
||||||
*.conf.*|shorewall6-lite.xml)
|
*.conf.*|shorewall6-lite.xml)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
g=${f#shorewall6-lite-}
|
g=${f#shorewall6-lite-}
|
||||||
h=$(ls ${g%.xml}.[58])
|
h=$(ls ${g%.xml}.[58])
|
||||||
mv $h shorewall6-lite-$h
|
f=shorewall6-lite-$h
|
||||||
|
mv $h $f
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
perl -p -w -i -e 's|/manpages6/\.\.||' $f
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm *.xml
|
rm *.xml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user