From: Daniel Carl Date: Tue, 25 Jun 2013 07:12:07 +0000 (+0200) Subject: Changed js2h.sh to also remove spaces around '!' char. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=2a4090b83bb65d1704833f695ffbb692b0e107d9;p=vimb.git Changed js2h.sh to also remove spaces around '!' char. This makes the hints.js.h file 6 bytes smaller, what a gain. --- diff --git a/src/js2h.sh b/src/js2h.sh index 174d413..95ff77a 100755 --- a/src/js2h.sh +++ b/src/js2h.sh @@ -6,8 +6,8 @@ cat $1 | \ tr '\n\r\t' ' ' | \ sed -e "s| \+| |g" \ -e "s|^//.*$||" \ - -e "s| \([-?<>:=(){};+\&\"',\|]\)|\1|g" \ - -e "s|\([-?<>:=(){};+\&\"',\|]\) |\1|g" \ + -e "s| \([-!?<>:=(){};+\&\"',\|]\)|\1|g" \ + -e "s|\([-!?<>:=(){};+\&\"',\|]\) |\1|g" \ -e 's|\\|\\\\|g' \ -e 's|"|\\"|g' echo '"'