[x264-devel] Fix cltostr.sh on OS X
Tsukasa OMOTO
git at videolan.org
Sun Jul 20 20:21:01 CEST 2014
x264 | branch: master | Tsukasa OMOTO <henry0312 at gmail.com> | Sun Jul 20 22:17:11 2014 +0900| [ea0ca51e94323318b95bd8b27b7f9438cdcf4d9e] | committer: Fiona Glaser
Fix cltostr.sh on OS X
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ea0ca51e94323318b95bd8b27b7f9438cdcf4d9e
---
tools/cltostr.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/cltostr.sh b/tools/cltostr.sh
index c5f6c15..852ba8a 100755
--- a/tools/cltostr.sh
+++ b/tools/cltostr.sh
@@ -12,7 +12,7 @@ sanitize() {
# Convert stdin to a \0-terminated char array.
dump() {
printf 'static const char %s[] = {\n' $1
- od -v -A n -t x1 | sed 's/.\(..\)/0x\1, /g'
+ od -v -A n -t x1 | sed 's/[[:space:]]*\([[:alnum:]]\{2\}\)/0x\1, /g'
printf '0x00 };\n'
}
More information about the x264-devel
mailing list