+2009-01-18 Bruno Haible <bruno@clisp.org>
+
+ Allow multiple levels of verbosity in 'msgfmt'.
+ * msgfmt.h (verbose): Change from 'bool' to 'int'.
+ * msgfmt.c (verbose): Likewise.
+ (main): Increment 'verbose' for each --verbose option.
+ * write-java.c (msgdomain_write_java): Update.
+ * write-csharp.c (msgdomain_write_csharp): Update.
+ * write-resources.c (msgdomain_write_csharp_resources): Update.
+
2009-01-18 Bruno Haible <bruno@clisp.org>
* str-list.h (string_list_join): Change the separator argument,
'error' or 'multiline_error' to emit verbosity messages, because 'error'
and 'multiline_error' during PO file parsing cause the program to exit
with EXIT_FAILURE. See function lex_end(). */
-bool verbose = false;
+int verbose = 0;
/* If true check strings according to format string rules for the
language. */
strict_uniforum = true;
break;
case 'v':
- verbose = true;
+ verbose++;
break;
case 'V':
do_version = true;
/* msgfmt specifics
- Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1995-1998, 2000-2001, 2009 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
This program is free software: you can redistribute it and/or modify
'error' or 'multiline_error' to emit verbosity messages, because 'error'
and 'multiline_error' during PO file parsing cause the program to exit
with EXIT_FAILURE. See function lex_end(). */
-extern bool verbose;
+extern int verbose;
#endif /* _MSGFMT_H */
/* Writing C# satellite assemblies.
- Copyright (C) 2003-2008 Free Software Foundation, Inc.
+ Copyright (C) 2003-2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
libdirs[0] = gettextlibdir;
libraries[0] = "GNU.Gettext";
if (compile_csharp_class (csharp_sources, 1, libdirs, 1, libraries, 1,
- output_file, true, false, verbose))
+ output_file, true, false, verbose > 0))
{
if (!verbose)
error (0, 0, _("compilation of C# class failed, please try --verbose"));
/* Writing Java ResourceBundles.
- Copyright (C) 2001-2003, 2005-2008 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
which is in a temporary directory in our case. */
java_sources[0] = java_file_name;
if (compile_java_class (java_sources, 1, NULL, 0, "1.3", "1.1", directory,
- true, false, true, verbose))
+ true, false, true, verbose > 0))
{
if (!verbose)
error (0, 0, _("\
/* Writing C# .resources files.
- Copyright (C) 2003, 2005, 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005, 2007-2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
if (execute_csharp_program (assembly_path, NULL, 0,
args,
- verbose, false,
+ verbose > 0, false,
execute_writing_input, &locals))
/* An error message should already have been provided. */
exit (EXIT_FAILURE);