Update the oggopus script to use xml2rfc v2.
The command line has changed, for the better, but we need to update the way we call it. Also adds an install hint if it's not found on the path. NB I tried to detect and fallback to the old syntax for the version 1 (TCL) implementation but this is hard because it doesn't support any switches (like --version) and it no longer parses our remote entities.
This commit is contained in:
parent
90bac9d148
commit
c763a35e9c
1 changed files with 11 additions and 3 deletions
|
@ -38,7 +38,15 @@ set -e
|
|||
#Set the CWD to the location of this script
|
||||
[ -n "${0%/*}" ] && cd "${0%/*}"
|
||||
|
||||
if test -z `which xml2rfc 2> /dev/null`; then
|
||||
echo "Error: couldn't find xml2rfc."
|
||||
echo
|
||||
echo "Please install xml2rfc version 2 or later."
|
||||
echo "E.g. 'pip install xml2rfc' or follow the instructions"
|
||||
echo "on http://pypi.python.org/pypi/xml2rfc/ or tools.ietf.org."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo running xml2rfc
|
||||
xml2rfc draft-ietf-codec-oggopus.xml draft-ietf-codec-oggopus.html &
|
||||
xml2rfc draft-ietf-codec-oggopus.xml
|
||||
wait
|
||||
# version 2 syntax
|
||||
xml2rfc draft-ietf-codec-oggopus.xml --text --html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue