summaryrefslogtreecommitdiffstats
path: root/src/inline.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/inline.sh')
-rwxr-xr-xsrc/inline.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/inline.sh b/src/inline.sh
index e32f33d..5ea082d 100755
--- a/src/inline.sh
+++ b/src/inline.sh
@@ -20,10 +20,6 @@
varname="$1"
echo "const char $varname[] ="
-IFS=
-while read line; do
- escaped=$(echo "$line" | sed -e 's|\\|\\\\|g; s|"|\\"|g')
- echo "\"$escaped\\n\""
-done
+od -t x1 -A n -v | sed -e 's| |\\x|g; s|^|"|; s|$|"|'
echo ";"