[valadoc] doclet/gtkdoc: fix failure to build outside of the source directory
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] doclet/gtkdoc: fix failure to build outside of the source directory
- Date: Tue, 4 May 2010 21:35:45 +0000 (UTC)
commit ff3d63d5a37be4628745d3ddca23e3c54f7d5f88
Author: Evan Nemerson <evan coeus-group com>
Date: Tue May 4 22:51:37 2010 +0200
doclet/gtkdoc: fix failure to build outside of the source directory
src/doclets/gtkdoc/doclet.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/doclets/gtkdoc/doclet.vala b/src/doclets/gtkdoc/doclet.vala
index f67b9a9..d2e6e2a 100644
--- a/src/doclets/gtkdoc/doclet.vala
+++ b/src/doclets/gtkdoc/doclet.vala
@@ -129,8 +129,9 @@ public class Gtkdoc.Director : Valadoc.Doclet, Object {
vala_headers = new string[]{};
c_headers = new string[]{};
Dir dir;
+ string dirname = settings.basedir ?? ".";
try {
- dir = Dir.open (settings.basedir ?? ".");
+ dir = Dir.open (dirname);
} catch (Error e) {
warning ("GtkDoc: Can't open %s: %s", settings.basedir, e.message);
return;
@@ -140,7 +141,7 @@ public class Gtkdoc.Director : Valadoc.Doclet, Object {
while ((filename = dir.read_name()) != null) {
if (filename.has_suffix (".h")) {
- var stream = FileStream.open (filename, "r");
+ var stream = FileStream.open (Path.build_filename (dirname, filename), "r");
if (stream != null) {
var line = stream.read_line ();
if (line != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]