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