X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=generator%2Fgenerator_main.ml;h=4ef9ba519c946d9b963b2ae84b8bdfe22b21341b;hb=9556903888eed268895a8454491d56302985f7e1;hp=f384fac08a030479c460f47ce361b05c34cbb6c2;hpb=7e3d76e41b3c2862ae04744b01e5e23b245393e4;p=libguestfs.git diff --git a/generator/generator_main.ml b/generator/generator_main.ml index f384fac..4ef9ba5 100644 --- a/generator/generator_main.ml +++ b/generator/generator_main.ml @@ -77,8 +77,7 @@ Run it from the top source directory using the command load_api_versions "src/api-support/added"; output_to "src/guestfs_protocol.x" generate_xdr; - output_to "src/guestfs-structs.h" generate_structs_h; - output_to "src/guestfs-actions.h" generate_actions_h; + output_to "src/guestfs.h" generate_guestfs_h; output_to "src/guestfs-internal-actions.h" generate_internal_actions_h; output_to "src/actions.c" generate_client_actions; output_to "src/bindtests.c" generate_bindtests; @@ -133,11 +132,15 @@ Run it from the top source directory using the command output_to "php/extension/php_guestfs_php.h" generate_php_h; output_to "php/extension/guestfs_php.c" generate_php_c; + (* Generate the list of files generated -- last. *) + printf "generated %d lines of code\n" (get_lines_generated ()); + let files = List.sort compare (get_files_generated ()) in + output_to "generator/files-generated.txt" + (fun () -> List.iter (pr "%s\n") files); + (* Always generate this file last, and unconditionally. It's used * by the Makefile to know when we must re-run the generator. *) let chan = open_out "generator/stamp-generator" in fprintf chan "1\n"; - close_out chan; - - printf "generated %d lines of code\n" (get_lines_generated ()) + close_out chan