diff options
author | Mike Seplowitz <mseplowitz@bloomberg.net> | 2015-01-12 22:36:37 (GMT) |
---|---|---|
committer | Mike Seplowitz <mseplowitz@bloomberg.net> | 2015-08-19 12:42:05 (GMT) |
commit | 40a4808074c2daa0f2f83faf22aa7e8a77f8fb22 (patch) | |
tree | 3565b5dfc737fc0ff33b3a87a5dd50535418e9f3 | |
parent | 30d1d7b8da64ff5f32b46aa704f9fbc324c71949 (diff) | |
download | Ninja-40a4808074c2daa0f2f83faf22aa7e8a77f8fb22.zip Ninja-40a4808074c2daa0f2f83faf22aa7e8a77f8fb22.tar.gz Ninja-40a4808074c2daa0f2f83faf22aa7e8a77f8fb22.tar.bz2 |
Strip tabs from od's output
/bin/od on Solaris and AIX both generate tabs.
-rwxr-xr-x | src/inline.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inline.sh b/src/inline.sh index 5acc17b..fa282fa 100755 --- a/src/inline.sh +++ b/src/inline.sh @@ -20,6 +20,6 @@ varname="$1" echo "const char $varname[] =" -od -t x1 -A n -v | sed -e 's| ||g; s|..|\\x&|g; s|^|"|; s|$|"|' +od -t x1 -A n -v | sed -e 's|[ \t]||g; s|..|\\x&|g; s|^|"|; s|$|"|' echo ";" |