[introspection-doc-generator] Force overwriting of files when generated



commit e775b718fc2eb9161df6f6b199536976efe91298
Author: Alan Knowles <alan akkbhome com>
Date:   Tue Jun 22 22:18:08 2010 +0800

    Force overwriting of files when generated

 docs.js |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/docs.js b/docs.js
index 1d57200..b23fc2c 100644
--- a/docs.js
+++ b/docs.js
@@ -57,7 +57,7 @@ ns_list.forEach(function(ns_name)
     var ns = Introspect.ns(ns_name);
     
     if (File.exists(ns.gir_file)) {
-        File.copyFile(ns.gir_file, outputdir + '/'+ ns.gir_filename,Gio.FileCopyFlags.OVERWRITE);
+        File.copyFile(ns.gir_file, outputdir + '/'+ ns.gir_filename, Gio.FileCopyFlags.OVERWRITE);
     }
     
     
@@ -126,10 +126,7 @@ for (var i in Introspect.references) {
     Gio.simple_write(html_file_path, html);
 
 }
-console.log("writing index");
+
 var ix_template = new Template(__script_path__ + '/docs/index.html');
 Gio.simple_write(outputdir + '/index.html', ix_template.process(ns_idx));
-console.log("coping images/css");
-File.silentRecursiveCopy(__script_path__ + '/docs/resources/', outputdir);
-
-console.log("done");
+File.silentRecursiveCopy(__script_path__ + '/docs/resources/', outputdir, Gio.FileCopyFlags.OVERWRITE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]