Permalink
Browse files

Remove \t from sed script

apparently, non-GNU implementations of sed do not understand backslash-sequences.
  • Loading branch information...
1 parent ba1919a commit ef6282fedca1e3c3bf08739f82d3a75055393081 @labath labath committed Jul 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"
+ sed -e 's/["\]/\\&/g' -e 's/^/ "/' -e 's/$/\\n"/' -e '$s/$/;/' "$1"
) > "$2"

0 comments on commit ef6282f

Please sign in to comment.