summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Seplowitz <mseplowitz@bloomberg.net>2015-01-12 17:36:37 -0500
committerMike Seplowitz <mseplowitz@bloomberg.net>2015-08-19 08:42:05 -0400
commit40a4808074c2daa0f2f83faf22aa7e8a77f8fb22 (patch)
tree3565b5dfc737fc0ff33b3a87a5dd50535418e9f3
parent30d1d7b8da64ff5f32b46aa704f9fbc324c71949 (diff)
downloadninja-40a4808074c2daa0f2f83faf22aa7e8a77f8fb22.tar.gz
Strip tabs from od's output
/bin/od on Solaris and AIX both generate tabs.
-rwxr-xr-xsrc/inline.sh2
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 ";"