From eb9bfc8e8c0f12f48646ca9aefe0428ef24f3adf Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 3 May 2014 19:33:46 +0200 Subject: [PATCH] Simplified js2h.sh file a little (#76). Removed last echo line and use sed to append the '"' to the string to fix compile error on FreeBSD. --- src/js2h.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js2h.sh b/src/js2h.sh index be92ac4..b6d3bf2 100755 --- a/src/js2h.sh +++ b/src/js2h.sh @@ -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/$/"/' -- 2.20.1