projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a3b662
)
Escape back-slashes in js2h.sh helper script.
author
Daniel Carl
<danielcarl@gmx.de>
Fri, 29 Mar 2013 23:04:06 +0000
(
00:04
+0100)
committer
Daniel Carl
<danielcarl@gmx.de>
Sat, 30 Mar 2013 00:48:23 +0000
(
01:48
+0100)
src/js2h.sh
patch
|
blob
|
history
diff --git
a/src/js2h.sh
b/src/js2h.sh
index
80ce526
..
db23784
100755
(executable)
--- a/
src/js2h.sh
+++ b/
src/js2h.sh
@@
-8,5
+8,6
@@
cat $1 | \
-e "s|^//.*$||" \
-e "s| \([-?<>:=(){};+\&\"',\|]\)|\1|g" \
-e "s|\([-?<>:=(){};+\&\"',\|]\) |\1|g" \
+ -e 's|\\|\\\\|g' \
-e 's|"|\\"|g'
echo -n "\"\n"