shithub: opus

Download patch

ref: c763a35e9c1a5df1c983ee9f3588777e9560d12f
parent: 90bac9d148286776180e38be3549cb8ff9ec0674
author: Ralph Giles <[email protected]>
date: Tue Dec 18 11:37:04 EST 2012

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.

--- a/doc/build_oggdraft.sh
+++ b/doc/build_oggdraft.sh
@@ -38,7 +38,15 @@
 #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