Tidy up generation of java/Makefile.inc.

(Just whitespace and comment changes, and small restructuring
of the code).
This commit is contained in:
Richard Jones
2009-08-07 17:38:44 +01:00
parent f0d6be10c2
commit c8419d45c8
2 changed files with 43 additions and 7 deletions

View File

@@ -1 +1,32 @@
java_built_sources = com/redhat/et/libguestfs/IntBool.java com/redhat/et/libguestfs/PV.java com/redhat/et/libguestfs/VG.java com/redhat/et/libguestfs/LV.java com/redhat/et/libguestfs/Stat.java com/redhat/et/libguestfs/StatVFS.java com/redhat/et/libguestfs/Dirent.java com/redhat/et/libguestfs/Version.java com/redhat/et/libguestfs/XAttr.java com/redhat/et/libguestfs/INotifyEvent.java com/redhat/et/libguestfs/GuestFS.java
# libguestfs generated file
# WARNING: THIS FILE IS GENERATED BY 'src/generator.ml'.
# ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
#
# Copyright (C) 2009 Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
java_built_sources = \
com/redhat/et/libguestfs/IntBool.java \
com/redhat/et/libguestfs/PV.java \
com/redhat/et/libguestfs/VG.java \
com/redhat/et/libguestfs/LV.java \
com/redhat/et/libguestfs/Stat.java \
com/redhat/et/libguestfs/StatVFS.java \
com/redhat/et/libguestfs/Dirent.java \
com/redhat/et/libguestfs/Version.java \
com/redhat/et/libguestfs/XAttr.java \
com/redhat/et/libguestfs/INotifyEvent.java \
com/redhat/et/libguestfs/GuestFS.java

View File

@@ -8504,6 +8504,16 @@ and generate_java_struct_list_return typ jtyp cols =
pr " guestfs_free_%s_list (r);\n" typ;
pr " return jr;\n"
and generate_java_makefile_inc () =
generate_header HashStyle GPLv2;
pr "java_built_sources = \\\n";
List.iter (
fun (typ, jtyp) ->
pr "\tcom/redhat/et/libguestfs/%s.java \\\n" jtyp;
) java_structs;
pr "\tcom/redhat/et/libguestfs/GuestFS.java\n"
and generate_haskell_hs () =
generate_header HaskellStyle LGPLv2;
@@ -9261,12 +9271,7 @@ Run it from the top source directory using the command
) java_structs;
let close = output_to "java/Makefile.inc" in
pr "java_built_sources =";
List.iter (
fun (typ, jtyp) ->
pr " com/redhat/et/libguestfs/%s.java" jtyp;
) java_structs;
pr " com/redhat/et/libguestfs/GuestFS.java\n";
generate_java_makefile_inc ();
close ();
let close = output_to "java/com_redhat_et_libguestfs_GuestFS.c" in