Permalink
Browse files

text2c.sh: Use real tabulator instead to '\t'

*BSDes unix tools (sed, grep, ...) aren't in general GNU ones.
DragonFlyBSD sed in particular doesn't interpret '/t' correctly.
  • Loading branch information...
1 parent bf1f417 commit c6c172837423441ca9150d611d0d061c1c4b3b0e @randy1 committed Jul 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 text2c.sh
View
@@ -36,5 +36,5 @@ outupper="`basename "$2" | tr '[a-z-.]' '[A-Z__]'`"
(
printf "const char %s[] = \n" "$3"
- sed -e 's/["\]/\\&/g' -e 's/^/\t"/' -e 's/$/\\n"/' -e '$s/$/;/' "$1"
-) > "$2"
+ sed -e 's/["\]/\\&/g' -e 's/^/ "/' -e 's/$/\\n"/' -e '$s/$/;/' "$1"
+) > $2

0 comments on commit c6c1728

Please sign in to comment.