thomasdavis/backboneboilerplate — pull request #24 by traviskaufman (2012-07-15 23:38:03+00:00)
Title: sed fix for OS X

This is a fix for sed failing on OS X, which was originally brought up in [this issue](https://github.com/thomasdavis/backboneboilerplate/issues/6). Although it was said to be resolved and marked closed, I didn't see a fix in the repo so here is my proposed solution. It's different from what's proposed in the issue comments, because if the stream does get corrupted or the command fails for any reason you'll have a back-up of the original output file. It shouldn't affect any platform other than OS X.