projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f5368fb
)
Force overwriting of files when generated
author
Alan Knowles
<alan@akkbhome.com>
Tue, 22 Jun 2010 14:18:08 +0000
(22:18 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Tue, 22 Jun 2010 14:18:08 +0000
(22:18 +0800)
docs.js
patch
|
blob
|
history
diff --git
a/docs.js
b/docs.js
index
1d57200
..
b23fc2c
100644
(file)
--- 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)) {
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);
}
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));
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);