Commit b0dec7e9 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

fix --version option in vapigen, patch by Jaap A. Haitsma, fixes bug

2007-08-06  Juerg Billeter  <j@bitron.ch>

	* vapigen/Makefile.am, vapigen/valavapigen.vala: fix --version option
	  in vapigen, patch by Jaap A. Haitsma, fixes bug 461262

svn path=/trunk/; revision=421
parent 2fd179ad
2007-08-06 Jürg Billeter <j@bitron.ch>
* vapigen/Makefile.am, vapigen/valavapigen.vala: fix --version option
in vapigen, patch by Jaap A. Haitsma, fixes bug 461262
2007-08-06 Jürg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/clutter-0.3.deps, vapi/clutter-0.3.vala,
......
......@@ -26,7 +26,7 @@ vapigen_SOURCES = \
$(NULL)
vapigen.vala.stamp: $(filter %.vala,$(vapigen_SOURCES))
$(VALAC) --vapidir $(srcdir)/../vapi --vapidir ../gee --pkg gee --vapidir ../ccode --pkg ccode --vapidir ../vala --pkg vala --vapidir ../gobject-introspection --pkg gidl $^
$(VALAC) --vapidir $(srcdir)/../vapi --vapidir ../gee --pkg gee --vapidir ../ccode --pkg ccode --vapidir ../vala --pkg vala --vapidir ../gobject-introspection --pkg gidl --pkg config $^
touch $@
vapigen_LDADD = \
......
......@@ -175,6 +175,11 @@ class Vala.VAPIGen {
return 1;
}
if (version) {
stdout.printf ("Vala API Generator %s\n", Config.PACKAGE_VERSION);
return 0;
}
if (sources == null) {
stderr.printf ("No source file specified.\n");
return 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment