cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject js commit: [windows] Fix builder choking on non-existent pkg directory.
Date Tue, 14 May 2013 16:27:18 GMT
Updated Branches:
  refs/heads/master a86559a69 -> 3baed3b63


[windows] Fix builder choking on non-existent pkg directory.


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/3baed3b6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/3baed3b6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/3baed3b6

Branch: refs/heads/master
Commit: 3baed3b6346ab45303da1f0157c49b5eb9d17a45
Parents: a86559a
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue May 14 12:25:11 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue May 14 12:25:11 2013 -0400

----------------------------------------------------------------------
 build/packager.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/3baed3b6/build/packager.js
----------------------------------------------------------------------
diff --git a/build/packager.js b/build/packager.js
index f3194a2..5cb9b5e 100644
--- a/build/packager.js
+++ b/build/packager.js
@@ -36,6 +36,10 @@ packager.generate = function(platform, commitId, useWindowsLineEndings)
{
     var libraryDebug   = packager.bundle(platform, true, commitId);
     
     time = new Date().valueOf() - time;
+    if (!fs.existsSync('pkg')) {
+      fs.mkdirSync('pkg');
+      fs.mkdirSync('pkg/debug');
+    }
     outFile = path.join('pkg', 'cordova.' + platform + '.js');
     fs.writeFileSync(outFile, libraryRelease, 'utf8');
     


Mime
View raw message