-
Notifications
You must be signed in to change notification settings - Fork 2
/
doxygen.js
34 lines (28 loc) · 937 Bytes
/
doxygen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const fs = require('fs');
const path = require('path');
const doxygenBinPath = path.join(process.cwd(), 'doxygen/bin/doxygen');
var mkdirp = require('mkdirp');
const spawn = require('child_process').spawn;
const exec = require('child_process').exec;
const execSync = require('child_process').execSync;
module.exports = function(callback){
console.log("..........doxing................");
fs.chmodSync(doxygenBinPath, 0777);
execSync(doxygenBinPath);
console.log("....Process ENDED");
callback();
/*
const doxy = spawn(doxygenBinPath);
doxy.stdout.on('data', (data) => {
console.log(`stdout: ${data}`);
});
doxy.stderr.on('data', (data) => {
console.log(`stderr: ${data}`);
});
doxy.on('close', (code) => {
console.log(`child process exited with code ${code}`);
console.log("...............CALLING CALLBACK...............");
callback();
});
*/
}