Remove sed from post-build code, due to portability issues between GNU and BSD versions.

Follow up to ba43d37394 which apparently
didn't fix the problem completly on Mac OS X.
This commit is contained in:
awgy 2011-02-12 03:35:41 +01:00 committed by Anton M
parent 3548ffaee2
commit 2862f589db
2 changed files with 10 additions and 2 deletions

7
build/post-compile.js Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env node
var print = require("sys").print,
src = require("fs").readFileSync(process.argv[2], "utf8");
// Previously done in sed but reimplemented here due to portability issues
print(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;"));