| Index: doc/build_isobmff.sh
|
| diff --git a/doc/build_oggdraft.sh b/doc/build_isobmff.sh
|
| similarity index 64%
|
| copy from doc/build_oggdraft.sh
|
| copy to doc/build_isobmff.sh
|
| index 30ee534b0d6067503f44a2dd472274cb7023d548..95ea202e4afeedf495cfe28aa328c8b9ebef5cf8 100755
|
| --- a/doc/build_oggdraft.sh
|
| +++ b/doc/build_isobmff.sh
|
| @@ -1,9 +1,6 @@
|
| #!/bin/sh
|
|
|
| -# Copyright (c) 2012 Xiph.Org Foundation and Mozilla Corporation
|
| -#
|
| -# This file is extracted from RFC6716. Please see that RFC for additional
|
| -# information.
|
| +# Copyright (c) 2014 Xiph.Org Foundation and Mozilla Foundation
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| # modification, are permitted provided that the following conditions
|
| @@ -16,11 +13,6 @@
|
| # notice, this list of conditions and the following disclaimer in the
|
| # documentation and/or other materials provided with the distribution.
|
| #
|
| -# - Neither the name of Internet Society, IETF or IETF Trust, nor the
|
| -# names of specific contributors, may be used to endorse or promote
|
| -# products derived from this software without specific prior written
|
| -# permission.
|
| -#
|
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| @@ -38,15 +30,21 @@ 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
|
| -# version 2 syntax
|
| -xml2rfc draft-ietf-codec-oggopus.xml --text --html
|
| +HTML=opus_in_isobmff.html
|
| +
|
| +echo downloading updates...
|
| +CSS=${HTML%%.html}.css
|
| +wget -q http://vfrmaniac.fushizen.eu/contents/${HTML} -O ${HTML}
|
| +wget -q http://vfrmaniac.fushizen.eu/style.css -O ${CSS}
|
| +
|
| +echo updating links...
|
| +cat ${HTML} | sed -e "s/\\.\\.\\/style.css/${CSS}/" > ${HTML}+ && mv ${HTML}+ ${HTML}
|
| +
|
| +echo stripping...
|
| +cat ${HTML} | sed -e 's/<!--.*-->//g' > ${HTML}+ && mv ${HTML}+ ${HTML}
|
| +cat ${HTML} | sed -e 's/ *$//g' > ${HTML}+ && mv ${HTML}+ ${HTML}
|
| +cat ${CSS} | sed -e 's/ *$//g' > ${CSS}+ && mv ${CSS}+ ${CSS}
|
| +
|
| +
|
| +VERSION=$(fgrep Version ${HTML} | sed 's/.*Version \([0-9]\.[0-9]\.[0-9]\).*/\1/')
|
| +echo Now at version ${VERSION}
|
|
|