From: Daniel Carl Date: Sat, 3 May 2014 17:33:46 +0000 (+0200) Subject: Simplified js2h.sh file a little (#76). X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=eb9bfc8e8c0f12f48646ca9aefe0428ef24f3adf;p=vimb.git 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. --- 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/$/"/'