]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclets/devhelp && htm: Fix output directory creation
authorFlorian Brosch <flo.brosch@gmail.com>
Wed, 5 Oct 2011 22:06:21 +0000 (00:06 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Wed, 5 Oct 2011 22:06:21 +0000 (00:06 +0200)
src/doclets/devhelp/doclet.vala
src/doclets/htm/doclet.vala

index b75b8d58191be5c6aab6c03a504001d13964c48d..4d523f8ede89db01447f878757becbb72aeaf711 100755 (executable)
@@ -55,7 +55,7 @@ public class Valadoc.Devhelp.Doclet : Valadoc.Html.BasicDoclet {
 
        public override void process (Settings settings, Api.Tree tree, ErrorReporter reporter) {
                base.process (settings, tree, reporter);
-               DirUtils.create (this.settings.path, 0777);
+               DirUtils.create_with_parents (this.settings.path, 0777);
                write_wiki_pages (tree, css_path_wiki, js_path_wiki, Path.build_filename (this.settings.path, this.settings.pkg_name, "content"));
                tree.accept (this);
        }
index 08cf09d70613435899586281ba4e4d3ebcd4db0e..23dec682a3951d57236828bdbea66e052e6f0a5b 100755 (executable)
@@ -44,12 +44,12 @@ public class Valadoc.HtmlDoclet : Valadoc.Html.BasicDoclet {
        public override void process (Settings settings, Api.Tree tree, ErrorReporter reporter) {
                base.process (settings, tree, reporter);
 
-               DirUtils.create (this.settings.path, 0777);
+               DirUtils.create_with_parents (this.settings.path, 0777);
                copy_directory (icons_dir, settings.path);
 
                write_wiki_pages (tree, css_path_wiki, js_path_wiki, Path.build_filename(settings.path, "content"));
 
-               GLib.FileStream file = GLib.FileStream.open (GLib.Path.build_filename ( settings.path, "index.html" ), "w");
+               GLib.FileStream file = GLib.FileStream.open (GLib.Path.build_filename (settings.path, "index.html"), "w");
                writer = new Html.MarkupWriter (file);
                _renderer.set_writer (writer);
                write_file_header (this.css_path_package, this.js_path_package, settings.pkg_name);