X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FBuildDocs.js;h=024d628a809853872438bbdcf66502d5fe95f143;hp=108aa8f97870cd0018113d23d147268fe19eb7e5;hb=25f36ac6f41ae48994b75fd710b5fb9bfc851727;hpb=20cf9eaebe28829103e55a23a3b6c3be2de5246a diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index 108aa8f..024d628 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -387,14 +387,15 @@ BuildDocs = { print("SF: " + sourceFile); - var name = sourceFile; //.substring(Options.baseDir.length+1); - //print(name); + var name = sourceFile.substring(Options.baseDir.length+1); + print("SHORT NAME: " + name); name = name.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_"); - + print("SHORT NAME _: " + name); name = name.replace(/\:/g, "_"); //?? + print("SHORT NAME :: " + name); Options.LOG.inform("Write Source file : " + Options.target+"/symbols/src/" + name); - var pretty = imports.PrettyPrint.toPretty(File.read(Options.baseDir + '/' + sourceFile)); + var pretty = imports.PrettyPrint.toPretty(File.read( sourceFile)); File.write(Options.target+"/symbols/src/" + name, '' + '' + sourceFile + '' +