1e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#!/bin/sh
2e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org
3e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org# Copyright (c) 2012 Xiph.Org Foundation and Mozilla Corporation
4e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#
5e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  This file is extracted from RFC6716. Please see that RFC for additional
6e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  information.
7e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#
8e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  Redistribution and use in source and binary forms, with or without
9e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  modification, are permitted provided that the following conditions
10e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  are met:
11e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#
12e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  - Redistributions of source code must retain the above copyright
13e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  notice, this list of conditions and the following disclaimer.
14e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#
15e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  - Redistributions in binary form must reproduce the above copyright
16e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  notice, this list of conditions and the following disclaimer in the
17e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  documentation and/or other materials provided with the distribution.
18e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#
19e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  - Neither the name of Internet Society, IETF or IETF Trust, nor the
20e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  names of specific contributors, may be used to endorse or promote
21e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  products derived from this software without specific prior written
22e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  permission.
23e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#
24e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
28e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org
36e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#Stop on errors
37e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.orgset -e
38e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org#Set the CWD to the location of this script
39e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org[ -n "${0%/*}" ] && cd "${0%/*}"
40e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org
41e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.orgif test -z `which xml2rfc 2> /dev/null`; then
42e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org  echo "Error: couldn't find xml2rfc."
43e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org  echo
44e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org  echo "Please install xml2rfc version 2 or later."
45e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org  echo "E.g. 'pip install xml2rfc' or follow the instructions"
46e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org  echo "on http://pypi.python.org/pypi/xml2rfc/ or tools.ietf.org."
47e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org  exit 1
48e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.orgfi
49e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org
50e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.orgecho running xml2rfc
51e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.org# version 2 syntax
52e3ea049fcaee2247e45f0ce793d4313babb4ef69tlegrand@chromium.orgxml2rfc draft-ietf-codec-oggopus.xml --text --html
53