From 4dff92e175f32a5ed20b4f58090e3debd42b9d1c Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 21 Apr 2010 13:44:38 +0800 Subject: [PATCH] JSDOC/Packer.js --- JSDOC/Packer.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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); + } } + + }, -- 2.39.2