git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove sed from post-build code, due to portability issues between GNU and BSD versions.
[jquery.git]
/
build
/
post-compile.js
diff --git a/build/post-compile.js
b/build/post-compile.js
new file mode 100644
(file)
index 0000000..
4bcafe8
--- /dev/null
+++ b/
build/post-compile.js
@@ -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;"));