]> granicus.if.org Git - mutt/commitdiff
Fix txt2c.sh sed invocations to use posix syntax.
authorDavid Champion <dgc@bikeshed.us>
Tue, 11 Aug 2015 18:20:10 +0000 (11:20 -0700)
committerDavid Champion <dgc@bikeshed.us>
Tue, 11 Aug 2015 18:20:10 +0000 (11:20 -0700)
txt2c.sh

index e62a82a6e51e7cb0684f1b644d4da3fb5641173d..7b337d5fecb75248b023a6d2f595b94efc17d126 100755 (executable)
--- a/txt2c.sh
+++ b/txt2c.sh
@@ -13,9 +13,9 @@ txt2c_fallback () {
        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/\\r/g' \
            -e 's/^/    "/g' \
            -e 's/$/\\n"/g'
        echo ";"