Automated draft compilation
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 3 Feb 2011 17:30:32 +0000 (12:30 -0500)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 3 Feb 2011 17:30:32 +0000 (12:30 -0500)
doc/build_draft.sh [new file with mode: 0755]

diff --git a/doc/build_draft.sh b/doc/build_draft.sh
new file mode 100755 (executable)
index 0000000..2f2878e
--- /dev/null
@@ -0,0 +1,20 @@
+
+
+rm -rf opus_source
+cat opus_sources.mk celt_sources.mk silk_sources.mk opus_headers.txt celt_headers.txt silk_headers.txt | sed -e 's/^.*=//' -e 's/\\//' > all_files.txt
+tar czvf tmp_draft.tar.gz `cat all_files.txt`
+
+mkdir opus_source
+cd opus_source
+tar xzvf ../tmp_draft.tar.gz
+cp ../Makefile.draft Makefile
+cp ../opus_sources.mk .
+cp ../celt_sources.mk .
+cp ../silk_sources.mk .
+
+cd ..
+tar czvf opus_source.tar.gz opus_source
+cat opus_source.tar.gz| base64 -w 66 | sed 's/^/###/' > doc/opus_source.base64
+
+cd doc
+xml2rfc draft-ietf-codec-opus.xml