Update build process.

This commit is contained in:
Lars Jung 2014-08-04 14:41:08 +02:00
parent 103824aa89
commit 2668c28737
3 changed files with 14 additions and 4 deletions

View file

@ -36,14 +36,14 @@ module.exports = function (make) {
make.target('check-version', [], 'add git info to dev builds').async(function (done, fail) {
if (!/\+$/.test(pkg.version)) {
if (!pkg.develop) {
done();
return;
}
$.git(root, function (err, result) {
pkg.version += result.buildSuffix;
pkg.version += '+' + result.buildSuffix;
$.info({ method: 'check-version', message: 'version set to ' + pkg.version });
done();
});