Simplified js2h.sh file a little (#76).
authorDaniel Carl <danielcarl@gmx.de>
Sat, 3 May 2014 17:33:46 +0000 (19:33 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 3 May 2014 17:33:46 +0000 (19:33 +0200)
Removed last echo line and use sed to append the '"' to the string to fix
compile error on FreeBSD.

src/js2h.sh

index be92ac4..b6d3bf2 100755 (executable)
@@ -9,5 +9,5 @@ cat $1 | \
     -e 's|"+"||g' \
     -e 's|\\x20| |g' \
     -e 's|\\|\\\\|g' \
-    -e 's|"|\\"|g'
-echo '"'
+    -e 's|"|\\"|g' \
+    -e '$s/$/"/'