projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30d1d7b
)
Strip tabs from od's output
author
Mike Seplowitz
<mseplowitz@bloomberg.net>
Mon, 12 Jan 2015 22:36:37 +0000
(17:36 -0500)
committer
Mike Seplowitz
<mseplowitz@bloomberg.net>
Wed, 19 Aug 2015 12:42:05 +0000
(08:42 -0400)
/bin/od on Solaris and AIX both generate tabs.
src/inline.sh
patch
|
blob
|
history
diff --git
a/src/inline.sh
b/src/inline.sh
index
5acc17b
..
fa282fa
100755
(executable)
--- 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 ";"