Updates makefile.js.

This commit is contained in:
Lars Jung 2012-08-05 19:56:26 +02:00
parent 0f948a56d8
commit d4a213beac
3 changed files with 20 additions and 11 deletions

View file

@ -25,6 +25,7 @@ It profits from these great projects:
[Underscore.js](http://underscorejs.org) (MIT)
## Build
A prebuilt package can be found on the [project page](http://larsjung.de/h5ai/). If you want to build
@ -39,8 +40,8 @@ To build the project run the following command inside the project's root directo
Run `makejs -t` to list all possible targets.
## Changelog
## Changelog
### v0.21 - *2012-08-??*

View file

@ -6,7 +6,7 @@ var path = require('path'),
child_process = require('child_process');
var version = '0.21-dev-37',
var version = '0.21-dev-43',
root = path.resolve(__dirname),
src = path.join(root, 'src'),
@ -159,17 +159,26 @@ module.exports = function (make) {
.async(function (done, fail) {
var target = path.join(build, 'h5ai-' + version + '.zip'),
command = 'zip -ro ' + target + ' _h5ai',
options = { cwd: build };
cmd = 'zip',
args = ['-ro', target, '_h5ai'],
options = { cwd: build },
proc = child_process.spawn(cmd, args, options);
child_process.exec(command, options, function (error, stdout, stderr) {
Event.info({ method: 'exec', message: cmd + ' ' + args.join(' ') });
if (error === null) {
Event.ok({ method: 'zip', message: target });
done();
} else {
Event.error({ method: 'zip', message: stderr });
// proc.stdout.on('data', function (data) {
// process.stdout.write(data);
// });
proc.stderr.on('data', function (data) {
process.stderr.write(data);
});
proc.on('exit', function (code) {
if (code) {
Event.error({ method: 'exec', message: cmd + ' exit code ' + code });
fail();
} else {
Event.ok({ method: 'exec', message: 'created zipball ' + target });
done();
}
});
});

View file

@ -30,7 +30,6 @@
.gutter .line {
border-right: none !important;
// border-right: 3px solid #6CE26C !important;
}
}
}