Skip to content

Commit e7d1a27

Browse files
committed
Add dbg file
1 parent ac01a86 commit e7d1a27

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/dbg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env node
2+
var cp = require("child_process");
3+
var path = require("path");
4+
5+
var file = process.argv[2]
6+
console.log(file)
7+
var fmt = path.parse(file);
8+
9+
process.env.BS_DEBUG_FILE = file;
10+
11+
cp.execSync(`touch ${file} && ninja ${fmt.dir}/${fmt.name}.cmj`, {
12+
stdio: [0, 1, 2]
13+
});

0 commit comments

Comments
 (0)