You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/06/21 19:18:29 UTC

[2/3] js commit: [All] [CB-3941] [CB-3940] packaging was failing if pkg existed but pkg/debug did not. Fixed whitespace difference between build platforms (cherry picked from commit af24bb7d196b141ee6838776da346472835921f1)

[All] [CB-3941] [CB-3940] packaging was failing if pkg existed but pkg/debug did not.  Fixed whitespace difference between build platforms
(cherry picked from commit af24bb7d196b141ee6838776da346472835921f1)


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

Branch: refs/heads/3.0.0
Commit: 01378a6ea02c2799396ee0635a89d9afd1f92cf5
Parents: d68f8ab
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jun 19 18:56:10 2013 -0700
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Jun 21 13:18:19 2013 -0400

----------------------------------------------------------------------
 build/packager.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/01378a6e/build/packager.js
----------------------------------------------------------------------
diff --git a/build/packager.js b/build/packager.js
index ec52758..f81b6a4 100644
--- a/build/packager.js
+++ b/build/packager.js
@@ -38,8 +38,11 @@ packager.generate = function(platform, commitId, useWindowsLineEndings) {
     time = new Date().valueOf() - time;
     if (!fs.existsSync('pkg')) {
       fs.mkdirSync('pkg');
-      fs.mkdirSync('pkg/debug');
     }
+    if(!fs.existsSync('pkg/debug')) {
+        fs.mkdirSync('pkg/debug');
+    }
+
     outFile = path.join('pkg', 'cordova.' + platform + '.js');
     fs.writeFileSync(outFile, libraryRelease, 'utf8');
     
@@ -226,7 +229,7 @@ function writeContents(oFile, fileName, contents, debug) {
     }
     
     else {
-        contents = '// file: ' + fileName + '\n' + contents    
+        contents = '// file: ' + fileName.split("\\").join("/") + '\n' + contents;
     }
 
     oFile.push(contents)