From ea0ca51e94323318b95bd8b27b7f9438cdcf4d9e Mon Sep 17 00:00:00 2001 From: Tsukasa OMOTO Date: Sun, 20 Jul 2014 22:17:11 +0900 Subject: [PATCH] Fix cltostr.sh on OS X --- tools/cltostr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cltostr.sh b/tools/cltostr.sh index c5f6c151..852ba8a7 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' } -- 2.40.0