From: Alan Knowles Date: Tue, 29 Jun 2010 10:13:11 +0000 (+0800) Subject: JSDOC/BuildDocs.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=062db213df300e77bc04e25f2bc37a22dfb8ad6c JSDOC/BuildDocs.js --- diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index 2ecaea0..5a7690b 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -340,18 +340,23 @@ BuildDocs = { }, - makeSrcFile: function(sourceFile, targetDir, name) + makeSrcFile: function(sourceFile) { - if (Options.outputSource) return; - + if (!name) { name = sourceFile.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_"); name = name.replace(/\:/g, "_"); } - var pretty = PrettyPrint.toPretty(sourceFile); - + var pretty = PrettyPrint.toPretty(File.read(sourceFile)); + File.write(Options.target+"/symbols/src" + prettyfile, + '' + + '' + files[i].substr(spath.length+1) + '' + + '' + + '' + + pretty + + ''); }