shithub: opus

Download patch

ref: bd628ab6336db02c0b9d34b52a8ca5a741e461ce
parent: 1c2f5633d101c08b5ef8095a8682d3d52cbd952d
author: Ralph Giles <[email protected]>
date: Fri Sep 16 18:53:48 EDT 2011

Use fold instead of passing a wrap length to base64.

The base64 implementation included with MacOS 10.7 doesn't
support the -w option for wrapping lines. Using the fold
command is more portable.

--- a/doc/build_draft.sh
+++ b/doc/build_draft.sh
@@ -35,7 +35,7 @@
 
 tar czf opus_source.tar.gz "${destdir}"
 echo building base64 version
-cat opus_source.tar.gz| base64 -w 66 | sed 's/^/###/' > opus_source.base64
+cat opus_source.tar.gz| base64 | fold -w 66 | sed 's/^/###/' > opus_source.base64
 
 #echo '<figure>' > opus_compare_escaped.c
 #echo '<artwork>' >> opus_compare_escaped.c