From 5a37f52570310338ffdf94ac17b2c8cc32f33f8f Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 12 Oct 2013 22:41:07 +0200
Subject: [PATCH] Don't use GNU extension in sed script.

Simplified the rules to match only comments used in the hints scripts.
---
 src/js2h.sh | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/js2h.sh b/src/js2h.sh
index 95ff77a..0aa6c04 100755
--- a/src/js2h.sh
+++ b/src/js2h.sh
@@ -2,12 +2,10 @@
 
 echo -n '#define HINTS_JS "'
 cat $1 | \
-    sed -e "s|/\*[^*]*\*\+\([^/][^*]*\*\+\)*/||g" | \
     tr '\n\r\t' ' ' | \
-    sed -e "s| \+| |g" \
-    -e "s|^//.*$||" \
-    -e "s| \([-!?<>:=(){};+\&\"',\|]\)|\1|g" \
-    -e "s|\([-!?<>:=(){};+\&\"',\|]\) |\1|g" \
+    sed -e 's:/\*[^*]*\*/::g' \
+    -e 's|[ ]\{2,\}| |g' \
+    -e "s|[ ]\{0,\}\([-!?<>:=(){};+\&\"',\|]\)[ ]\{0,\}|\1|g" \
     -e 's|\\|\\\\|g' \
     -e 's|"|\\"|g'
 echo '"'
-- 
2.20.1