# HG changeset patch
# User Kevin McCarthy <kevin@8t8.us>
# Date 1438919239 25200
#      Thu Aug 06 20:47:19 2015 -0700
# Node ID d036dbdf1f3de2db032c6b18ad2100cdbf053881
# Parent  0febb1f15c647ee1aa23b20684744fcd4268ca87
Fix txt2c.sh sed invocation to use posix syntax.

diff --git a/txt2c.sh b/txt2c.sh
--- a/txt2c.sh
+++ b/txt2c.sh
@@ -8,19 +8,19 @@
 
 	# initializer - filter out unwanted characters, then convert problematic
 	# or odd-looking sequences.  The result is a sequence of quote-bounded
 	# C strings, which the compiler concatenates into a single C string.
 	tr -c '\011\012\015\040[!-~]' '?' |
 	sed \
 	    -e 's/\\/\\\\/g' \
 	    -e 's/"/\\"/g' \
-	    -e 's/??/\?\?/g' \
-	    -e 's/\t/\\t/'g \
-	    -e 's/\r/\\r/g' \
+	    -e 's/??/\\?\\?/g' \
+	    -e 's/	/\\t/'g \
+	    -e 's//\\r/g' \
 	    -e 's/^/	"/g' \
 	    -e 's/$/\\n"/g'
 	echo ";"
 }
 
 ./txt2c test </dev/null >/dev/null 2>&1 &&
 ./txt2c "$1" ||
 txt2c_fallback "$1"
