diff options
author | Ralph Giles <giles@mozilla.com> | 2012-12-19 04:37:04 +0400 |
---|---|---|
committer | Ralph Giles <giles@mozilla.com> | 2012-12-19 04:37:04 +0400 |
commit | c763a35e9c1a5df1c983ee9f3588777e9560d12f (patch) | |
tree | c911291618444281b6f08f6611b9dbb4724f53b8 /doc | |
parent | 90bac9d148286776180e38be3549cb8ff9ec0674 (diff) |
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.
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/build_oggdraft.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/build_oggdraft.sh b/doc/build_oggdraft.sh index aa65aeb4..30ee534b 100755 --- a/doc/build_oggdraft.sh +++ b/doc/build_oggdraft.sh @@ -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 |