You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/06/20 03:57:00 UTC

js commit: [All] [CB-3941] [CB-3940] packaging was failing if pkg existed but pkg/debug did not. Fixed whitespace difference between build platforms

Updated Branches:
  refs/heads/master 89127a803 -> af24bb7d1


[All] [CB-3941] [CB-3940] packaging was failing if pkg existed but pkg/debug did not.  Fixed whitespace difference between build platforms


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

Branch: refs/heads/master
Commit: af24bb7d196b141ee6838776da346472835921f1
Parents: 89127a8
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jun 19 18:56:10 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jun 19 18:56:10 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/af24bb7d/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)