[Libguestfs] [PATCH 2/2] Automatically generate list of built java sources
Richard W.M. Jones
rjones at redhat.com
Mon Jul 13 13:11:32 UTC 2009
On Mon, Jul 13, 2009 at 02:02:05PM +0100, Matthew Booth wrote:
> + let close = output_to "java/Makefile.inc" in
> + pr "java_built_sources =";
> + List.iter (
> + fun (typ, jtyp) ->
You can use:
fun (_, jtyp) ->
where the underscore means you don't care about the first part of the
tuple.
> + pr " com/redhat/et/libguestfs/%s.java" jtyp;
> + ) java_structs;
> + pr " com/redhat/et/libguestfs/GuestFS.java\n";
> + close ();
+1 to the patch anyhow.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
More information about the Libguestfs
mailing list