mirror of
https://github.com/xiph/opus.git
synced 2025-05-23 03:39:17 +00:00

commit 5b64cf7c4d67af9050bc959996ef976ce6326888 Author: Jean-Marc Valin <jean-marc.valin@octasic.com> Date: Thu May 19 16:40:35 2011 -0400 Fixes a few bugs introduced in the latest update commit b91eb86025d2de3c4cf04f4fb1aa48a28ad676a3 Author: Timothy B. Terriberry <tterribe@xiph.org> Date: Thu May 19 16:12:02 2011 -0400 build_draft.sh fixes commit 0b10c30db7ad60ff7d4bfc1139bdb86e0543c035 Author: Jean-Marc Valin <jean-marc.valin@octasic.com> Date: Thu May 19 15:30:21 2011 -0400 Fixes the draft build commit 164424cded5978e657105104e171ac202dde5e5b Author: Jean-Marc Valin <jean-marc.valin@octasic.com> Date: Thu May 19 15:00:23 2011 -0400 Updated build system commit 188d9fcba8c3a1b1ad67c67c430e1b37e3658a40 Author: Koen Vos <koen.vos@skype.net> Date: Thu May 19 17:14:57 2011 -0400 SILK/Opus update
48 lines
1.6 KiB
Bash
Executable file
48 lines
1.6 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
#Stop on errors
|
|
set -e
|
|
#Set the CWD to the location of this script
|
|
[ -n "${0%/*}" ] && cd "${0%/*}"
|
|
|
|
toplevel=".."
|
|
destdir="opus_source"
|
|
|
|
echo packaging source code
|
|
rm -rf "${destdir}"
|
|
mkdir "${destdir}"
|
|
mkdir "${destdir}/src"
|
|
mkdir "${destdir}/silk"
|
|
mkdir "${destdir}/silk/float"
|
|
mkdir "${destdir}/silk/fixed"
|
|
mkdir "${destdir}/libcelt"
|
|
for f in `cat "${toplevel}"/opus_sources.mk "${toplevel}"/celt_sources.mk \
|
|
"${toplevel}"/silk_sources.mk "${toplevel}"/opus_headers.txt \
|
|
"${toplevel}"/celt_headers.txt "${toplevel}"/silk_headers.txt \
|
|
| grep '\.[ch]' | sed -e 's/^.*=//' -e 's/\\\\//'` ; do
|
|
cp -a "${toplevel}/${f}" "${destdir}/${f}"
|
|
done
|
|
cp -a "${toplevel}"/src/test_opus.c "${destdir}"/src/
|
|
cp -a "${toplevel}"/Makefile.draft "${destdir}"/Makefile
|
|
cp -a "${toplevel}"/opus_sources.mk "${destdir}"/
|
|
cp -a "${toplevel}"/celt_sources.mk "${destdir}"/
|
|
cat "${toplevel}"/silk_sources.mk | sed 's/^if /ifdef /' \
|
|
> "${destdir}"/silk_sources.mk
|
|
cp -a "${toplevel}"/README.draft "${destdir}"/README
|
|
cp -a "${toplevel}"/COPYING "${destdir}"/COPYING
|
|
|
|
tar czf opus_source.tar.gz "${destdir}"
|
|
echo building base64 version
|
|
cat opus_source.tar.gz| base64 -w 66 | sed 's/^/###/' > opus_source.base64
|
|
|
|
echo '<figure>' > opus_compare_escaped.m
|
|
echo '<artwork>' >> opus_compare_escaped.m
|
|
echo '<![CDATA[' >> opus_compare_escaped.m
|
|
cat opus_compare.m >> opus_compare_escaped.m
|
|
echo ']]>' >> opus_compare_escaped.m
|
|
echo '</artwork>' >> opus_compare_escaped.m
|
|
echo '</figure>' >> opus_compare_escaped.m
|
|
|
|
echo running xml2rfc
|
|
xml2rfc draft-ietf-codec-opus.xml
|
|
xml2rfc draft-ietf-codec-opus.xml draft-ietf-codec-opus.html
|