[vala/switch-to-gir] vapigen: Honor --directory option as output directory
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir] vapigen: Honor --directory option as output directory
- Date: Mon, 23 Aug 2010 18:22:53 +0000 (UTC)
commit 12144e7da12a9ccdc665e6fedaa0e5c534a51cc6
Author: Luca Bruno <lethalman88 gmail com>
Date: Mon Aug 23 20:18:17 2010 +0200
vapigen: Honor --directory option as output directory
vapigen/valavapigen.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index e5e80aa..a6d1e10 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -176,7 +176,12 @@ class Vala.VAPIGen : Object {
}
var interface_writer = new CodeWriter ();
- interface_writer.write_file (context, "%s.vapi".printf (library));
+ var vapi_filename = "%s.vapi".printf (library);
+ if (directory != null) {
+ vapi_filename = Path.build_filename (directory, vapi_filename);
+ }
+
+ interface_writer.write_file (context, vapi_filename);
return quit ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]