From: alan Date: Wed, 21 Apr 2010 05:44:38 +0000 (+0800) Subject: JSDOC/Packer.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=4dff92e175f32a5ed20b4f58090e3debd42b9d1c JSDOC/Packer.js --- diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index 66de07b..3155df3 100644 --- a/JSDOC/Packer.js +++ b/JSDOC/Packer.js @@ -196,12 +196,18 @@ Packer.prototype = { if (str.length) { File.append(this.target, str + "\n"); } + if (this.cleanup) { + File.remove(transmd5); + } } if (File.exists(transfile)) { var str = File.read(transfile); if (str.length) { File.append(this.translateJson, str); } + if (this.cleanup) { + File.remove(transfile); + } } @@ -213,6 +219,8 @@ Packer.prototype = { for(var i=0; i < files.length; i++) { var minfile = bpath + '/' + this.files.replace(/\//g, '.'); + + if (!File.exists(minfile)) { continue; } @@ -221,15 +229,13 @@ Packer.prototype = { if (str.length) { File.append(this.target, str + "\n"); } - } - - - //File.append(dout, "\n");// end the function - if (this.cleanup) { - - + if (this.cleanup) { + File.remove(minfile); + } } + + },