Changeset 459


Ignore:
Timestamp:
May 30, 2008, 4:52:11 PM (16 years ago)
Author:
rybkin
Message:

See C.L. 360

Location:
CMT/HEAD
Files:
46 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r458 r459  
     12008-05-30    <rybkin@lal.in2p3.fr> 360
     2       
     3        * source/cmt_log.h: Introduce an enumeration to hold diagnostic messages
     4        levels (Debug, Info, Warning, Error, Fatal). Implement a class to hold
     5        and manage diagnostic messages prefix, level (default values: #CMT--->,
     6        Info), and functions to produce diagnostic messages
     7        * source/cmt_parser.cxx: Implement functions to configure diagnostic
     8        messages prefix, and level using the environment variables CMTMSGPREFIX,
     9        and CMTDEBUG, CMTINFO, CMTWARNING, CMTERROR, CMTFATAL (in order of
     10        precedence) if set to a non-empty string. Extend functions to configure
     11        the diagnostic messages level using the existing command line options
     12        -warnings (Warning), -disable_warnings (Error), -quiet (Fatal).
     13        Introduce the CMTFLAGS environment variable (set up automatically) in order
     14        to contain command line options (currently, to configure the diagnostic
     15        messages level and the structuring style) so as to pass the flags to
     16        recursive cmt invocations. If CMTFLAGS exists in the environment, the
     17        flags from it are processed before the command line options. Implement
     18        the CMTFLAGS functionality described above.
     19        Use the diagnostic message functions for the messages
     20        * source/cmt.h: idem
     21        * source/cmt_tag.cxx: Use the diagnostic message functions for the messages
     22        * source/cmt_awk.cxx: idem
     23        * source/cmt_system.cxx: idem
     24        * source/cmt_use.cxx: idem
     25        * source/cmt_install_area.cxx: idem
     26        * source/cmt_fragment.cxx: idem
     27        * source/cmt_generators.cxx: idem
     28        * source/cmt_constituent.cxx: idem
     29        * source/cmt_syntax.cxx: idem
     30        * source/cmt_triggers.cxx: idem
     31        * source/cmt_error.cxx: idem
     32        * source/cmt_model.cxx: idem
     33        * source/cmt_commands.cxx: idem
     34        * source/cmt_project.cxx: idem
     35        * source/cmt_pattern.cxx: idem
     36        * source/cmt_lock.cxx: idem
     37        * source/cmt_generator.cxx: idem
     38        * source/cmt_cvs.cxx: idem
     39        * source/cmt_symbol.cxx: idem
     40        * mgr/requirements: Do not use the -quiet command line option
     41        * mgr/fragments/constituent:  idem
     42        * mgr/fragments/make_setup: idem
     43        * mgr/fragments/check_application_header: idem
     44        * mgr/fragments/constituents_header: idem
     45        * mgr/fragments/constituent_lock: idem
     46        * mgr/fragments/generator_header: idem
     47        * mgr/fragments/cleanup_header: Improve control of Make verbosity
     48        * mgr/fragments/make_setup_nmake: Do not use the -quiet command line option
     49        * mgr/fragments/nmake/constituent: idem
     50        * mgr/fragments/nmake/check_application_header: idem
     51        * mgr/fragments/nmake/constituents_header: idem
     52        * mgr/fragments/nmake/yacc: idem
     53        * mgr/fragments/nmake/constituent_lock: idem
     54        * mgr/fragments/nmake/lex: idem
     55        * mgr/fragments/nmake/generator_header: idem
     56        * mgr/fragments/nmake/yacc_library: idem
     57        * mgr/fragments/nmake/lex_library: idem
     58        * src/Makefile.header: idem, improve control of Make verbosity
     59        * src/constituents.make: Do not use the -quiet command line option
     60        * src/NMakefile.header: idem
     61        * src/constituents.nmake: idem
     62
    1632008-05-14    <rybkin@lal.in2p3.fr> 359
    264       
  • CMT/HEAD/mgr/cmt_dependencies.make

    r427 r459  
    11cmt_cxx_dependencies =  ../source/cmt.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h
    2 cmt_awk_cxx_dependencies =  ../source/cmt_awk.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_regexp.h   ../source/cmt_awk.h   ../source/cmt_vector.h   ../source/cmt_system.h
     2cmt_awk_cxx_dependencies =  ../source/cmt_awk.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_regexp.h   ../source/cmt_awk.h   ../source/cmt_vector.h   ../source/cmt_system.h   ../source/cmt_log.h
    33cmt_branch_cxx_dependencies =  ../source/cmt_branch.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h
    4 cmt_constituent_cxx_dependencies =  ../source/cmt_constituent.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_deps_builder.h   ../source/cmt_generator.h   ../source/cmt_branch.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h
     4cmt_constituent_cxx_dependencies =  ../source/cmt_constituent.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_deps_builder.h   ../source/cmt_generator.h   ../source/cmt_branch.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_log.h
    55cmt_deps_builder_cxx_dependencies =  ../source/cmt_deps_builder.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_deps_builder.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_log.h
    6 cmt_fragment_cxx_dependencies =  ../source/cmt_fragment.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_branch.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h
    7 cmt_generator_cxx_dependencies =  ../source/cmt_generator.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_deps_builder.h   ../source/cmt_generator.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_generators.h
     6cmt_fragment_cxx_dependencies =  ../source/cmt_fragment.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_branch.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_log.h
     7cmt_generator_cxx_dependencies =  ../source/cmt_generator.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_deps_builder.h   ../source/cmt_generator.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_generators.h   ../source/cmt_log.h
    88cmt_include_cxx_dependencies =  ../source/cmt_include.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_map.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_log.h
    99cmt_parser_cxx_dependencies =  ../source/cmt_parser.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_version.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_deps_builder.h   ../source/cmt_generator.h   ../source/cmt_error.h   ../source/cmt_cvs.h   ../source/cmt_lock.h   ../source/cmt_triggers.h   ../source/cmt_model.h   ../source/cmt_syntax.h   ../source/cmt_install_area.h   ../source/cmt_sequence.h   ../source/cmt_log.h   ../source/cmt_commands.h
    1010cmt_script_cxx_dependencies =  ../source/cmt_script.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_script.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h
    1111cmt_string_cxx_dependencies =  ../source/cmt_string.cxx   ../source/cmt_std.h   ../source/cmt_string.h
    12 cmt_system_cxx_dependencies =  ../source/cmt_system.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_error.h   ../source/cmt_map.h
     12cmt_system_cxx_dependencies =  ../source/cmt_system.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_error.h   ../source/cmt_map.h   ../source/cmt_log.h
    1313cmt_tag_cxx_dependencies =  ../source/cmt_tag.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_log.h
    14 cmt_use_cxx_dependencies =  ../source/cmt_use.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_error.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_syntax.h
    15 cmt_symbol_cxx_dependencies =  ../source/cmt_symbol.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h
    16 cmt_error_cxx_dependencies =  ../source/cmt_error.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_error.h   ../source/cmt_vector.h
    17 cmt_pattern_cxx_dependencies =  ../source/cmt_pattern.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_error.h   ../source/cmt_syntax.h
     14cmt_use_cxx_dependencies =  ../source/cmt_use.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_error.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_syntax.h   ../source/cmt_log.h
     15cmt_symbol_cxx_dependencies =  ../source/cmt_symbol.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_log.h
     16cmt_error_cxx_dependencies =  ../source/cmt_error.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_error.h   ../source/cmt_vector.h   ../source/cmt_log.h
     17cmt_pattern_cxx_dependencies =  ../source/cmt_pattern.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_error.h   ../source/cmt_syntax.h   ../source/cmt_log.h
    1818cmt_language_cxx_dependencies =  ../source/cmt_language.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_language.h   ../source/cmt_branch.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h
    19 cmt_cvs_cxx_dependencies =  ../source/cmt_cvs.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_cvs.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_project.h
     19cmt_cvs_cxx_dependencies =  ../source/cmt_cvs.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_cvs.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_project.h   ../source/cmt_log.h
    2020cmt_group_cxx_dependencies =  ../source/cmt_group.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_group.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h
    2121cmt_database_cxx_dependencies =  ../source/cmt_database.cxx   ../source/cmt_vector.h   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h
    22 cmt_lock_cxx_dependencies =  ../source/cmt_lock.cxx   ../source/cmt_std.h   ../source/cmt_lock.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_error.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h
    23 cmt_triggers_cxx_dependencies =  ../source/cmt_triggers.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_triggers.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_project.h   ../source/cmt_syntax.h
     22cmt_lock_cxx_dependencies =  ../source/cmt_lock.cxx   ../source/cmt_std.h   ../source/cmt_lock.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_error.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_log.h
     23cmt_triggers_cxx_dependencies =  ../source/cmt_triggers.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_triggers.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_awk.h   ../source/cmt_map.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_project.h   ../source/cmt_syntax.h   ../source/cmt_log.h
    2424cmt_regexp_cxx_dependencies =  ../source/cmt_regexp.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_regexp.h   ../source/cmt_vector.h   ../source/cmt_system.h
    25 cmt_model_cxx_dependencies =  ../source/cmt_model.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_model.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h
    26 cmt_project_cxx_dependencies =  ../source/cmt_project.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_syntax.h   ../source/cmt_error.h
    27 cmt_syntax_cxx_dependencies =  ../source/cmt_syntax.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_syntax.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_error.h   ../source/cmt_branch.h   ../source/cmt_language.h   ../source/cmt_cmtpath_pattern.h
    28 cmt_install_area_cxx_dependencies =  ../source/cmt_install_area.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_parser.h   ../source/cmt.h   ../source/cmt_install_area.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_syntax.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_cmtpath_pattern.h
     25cmt_model_cxx_dependencies =  ../source/cmt_model.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_model.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_fragment.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_log.h
     26cmt_project_cxx_dependencies =  ../source/cmt_project.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_syntax.h   ../source/cmt_error.h   ../source/cmt_log.h
     27cmt_syntax_cxx_dependencies =  ../source/cmt_syntax.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_syntax.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_error.h   ../source/cmt_branch.h   ../source/cmt_language.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_log.h
     28cmt_install_area_cxx_dependencies =  ../source/cmt_install_area.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt_parser.h   ../source/cmt.h   ../source/cmt_install_area.h   ../source/cmt_map.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_syntax.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_log.h
    2929cmt_cmtpath_pattern_cxx_dependencies =  ../source/cmt_cmtpath_pattern.cxx   ../source/cmt_vector.h   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_branch.h   ../source/cmt_fragment.h   ../source/cmt_group.h   ../source/cmt_constituent.h   ../source/cmt_language.h   ../source/cmt_map.h   ../source/cmt_pattern.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_cmtpath_pattern.h   ../source/cmt_database.h   ../source/cmt_syntax.h
    3030cmt_sequence_cxx_dependencies =  ../source/cmt_sequence.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_regexp.h   ../source/cmt_awk.h   ../source/cmt_sequence.h   ../source/cmt_vector.h   ../source/cmt_system.h
     
    3232cmt_scope_section_cxx_dependencies =  ../source/cmt_scope_section.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_parser.h   ../source/cmt_scope_section.h
    3333cmt_log_cxx_dependencies =  ../source/cmt_log.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_log.h   ../source/cmt_vector.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h
    34 cmt_commands_cxx_dependencies =  ../source/cmt_commands.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_commands.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h
     34cmt_commands_cxx_dependencies =  ../source/cmt_commands.cxx   ../source/cmt_std.h   ../source/cmt_string.h   ../source/cmt_vector.h   ../source/cmt_map.h   ../source/cmt_parser.h   ../source/cmt_regexp.h   ../source/cmt_system.h   ../source/cmt.h   ../source/cmt_commands.h   ../source/cmt_include.h   ../source/cmt_script.h   ../source/cmt_pattern.h   ../source/cmt_scope_section.h   ../source/cmt_use.h   ../source/cmt_tag.h   ../source/cmt_symbol.h   ../source/cmt_awk.h   ../source/cmt_project.h   ../source/cmt_log.h
  • CMT/HEAD/mgr/fragments/check_application_header

    r23 r459  
    66${CONSTITUENT}check ::
    77        @echo "------> starting ${CONSTITUENT}check"
    8         @$(cmtexe) -quiet build constituent_makefile ${CONSTITUENT}; $(MAKE) -f ${CONSTITUENT}.make build_strategy=keep_makefiles ${CONSTITUENT}check
     8        @$(cmtexe) build constituent_makefile ${CONSTITUENT}; $(MAKE) -f ${CONSTITUENT}.make build_strategy=keep_makefiles ${CONSTITUENT}check
    99
    1010#-- end of check_application_header ------
  • CMT/HEAD/mgr/fragments/cleanup_header

    r458 r459  
    66ifndef PEDANTIC
    77.DEFAULT::
    8         @echo "#CMT> Warning: $@: No rule for such target" >&2; exit
     8        $(echo) "(${CONSTITUENT}.make) $@: No rule for such target" >&2
     9#       @echo "#CMT> Warning: $@: No rule for such target" >&2; exit
    910else
    1011.DEFAULT::
    11         @echo "#CMT> PEDANTIC MODE >> No rule for target $@" >&2
    12         @if test $@ = "$(cmt_final_setup)" -o\
     12        $(echo) "(${CONSTITUENT}.make) PEDANTIC: $@: No rule for such target" >&2
     13        if test $@ = "$(cmt_final_setup)" -o\
    1314         $@ = "$(cmt_final_setup_${CONSTITUENT})" ; then\
    1415         found=n; for s in 1 2 3 4 5; do\
    1516         sleep $$s; test ! -f $@ || { found=y; break; }\
    1617         done; if test $$found = n; then\
    17          echo "#CMT> PEDANTIC MODE >> $@ seems to be missing. Ignore it for now" >&2; exit 0 ; fi;\
     18         test -z "$(cmtmsg)" ||\
     19         echo "$(CMTMSGPREFIX)" "(${CONSTITUENT}.make) PEDANTIC: $@: Seems to be missing. Ignore it for now" >&2; exit 0 ; fi;\
    1820         elif test `expr index $@ '/'` -ne 0 ; then\
    19          echo "#CMT> PEDANTIC MODE >> $@ seems to be a missing file, please check" >&2; exit -1 ; \
     21         test -z "$(cmtmsg)" ||\
     22         echo "$(CMTMSGPREFIX)" "(${CONSTITUENT}.make) PEDANTIC: $@: Seems to be a missing file. Please check" >&2; exit 2 ; \
    2023         else\
    21          echo "#CMT> PEDANTIC MODE >> $@ seems to be a fake target due to some pattern. Just ignore it" >&2 ; exit 0; fi
     24         test -z "$(cmtmsg)" ||\
     25         echo "$(CMTMSGPREFIX)" "(${CONSTITUENT}.make) PEDANTIC: $@: Seems to be a fake target due to some pattern. Just ignore it" >&2 ; exit 0; fi
    2226endif
    2327
  • CMT/HEAD/mgr/fragments/constituent

    r441 r459  
    2828        $(echo) "(constituents.make) Rebuilding setup.make $(cmt_local_tagfile_${CONSTITUENT})"
    2929        @if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \
    30           $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \
     30          $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \
    3131          if test -f $(cmt_final_setup_${CONSTITUENT}); then /bin/rm -f $(cmt_final_setup_${CONSTITUENT}); fi; \
    32           $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT})
     32          $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT})
    3333        $(echo) setup.make ok
    3434
     
    5454endif
    5555        $(echo) "(constituents.make) Building ${CONSTITUENT}.make"; \
    56           $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
     56          $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
    5757
    5858${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
  • CMT/HEAD/mgr/fragments/constituent_lock

    r447 r459  
    2828        $(echo) "(constituents.make) Rebuilding setup.make $(cmt_local_tagfile_${CONSTITUENT})"
    2929        @if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \
    30           $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \
     30          $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \
    3131          if test -f $(cmt_final_setup_${CONSTITUENT}); then /bin/rm -f $(cmt_final_setup_${CONSTITUENT}); fi; \
    32           $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT})
     32          $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT})
    3333        $(echo) setup.make ok
    3434
     
    5454endif
    5555        $(echo) "(constituents.make) Building ${CONSTITUENT}.make"; \
    56           $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
     56          $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
    5757
    5858${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
  • CMT/HEAD/mgr/fragments/constituents_header

    r441 r459  
    4747endif
    4848
    49 ##      @bin=`$(cmtexe) -quiet show macro_value bin`
     49##      @bin=`$(cmtexe) show macro_value bin`
    5050
    5151#$(cmt_local_tagfile) : $(cmt_lock_setup)
     
    6060          if test -f $(cmt_local_setup); then /bin/rm -f $(cmt_local_setup); fi; \
    6161          trap '/bin/rm -f $(cmt_local_setup)' 0 1 2 15; \
    62           $(cmtexe) -quiet -tag=$(tags) show setup >>$(cmt_local_setup); \
     62          $(cmtexe) -tag=$(tags) show setup >>$(cmt_local_setup); \
    6363          if test ! -f $@; then \
    6464            mv $(cmt_local_setup) $@; \
     
    7878
    7979env.make ::
    80         printenv >env.make.tmp; $(cmtexe) -quiet check files env.make.tmp env.make
     80        printenv >env.make.tmp; $(cmtexe) check files env.make.tmp env.make
    8181
    8282ifndef QUICK
     
    101101
    102102.DEFAULT ::
    103         @echo "#CMT> Warning: $@: Using default commands" >&2; exit
     103        $(echo) "(constituents.make) $@: No rule for such target" >&2
     104#       @echo "#CMT> Warning: $@: Using default commands" >&2; exit
    104105
    105106#       @if test "$@" = "$(cmt_lock_setup)"; then \
  • CMT/HEAD/mgr/fragments/generator_header

    r23 r459  
    1212${dir}${out}_stamp ::
    1313        @echo ${out}
    14         $(cmtexe) -quiet expand model "${model}" > ${dir}${out}_temp
    15         $(cmtexe) -quiet check files ${dir}${out}_temp ${dir}${out}
     14        $(cmtexe) expand model "${model}" > ${dir}${out}_temp
     15        $(cmtexe) check files ${dir}${out}_temp ${dir}${out}
    1616        @echo ${CONSTITUENT} >${dir}${out}_stamp
    1717
  • CMT/HEAD/mgr/fragments/make_setup

    r95 r459  
    1111        @if test "$(nocheck)" = ""; then \
    1212          /bin/echo "Rebuilding $@"; \
    13           $(cmtexe) setup -quiet -tag=$(tags) | sed -e 's#`${CMTROOT}/mgr/cmt system`#$(${PACKAGE}_tag)#' >$(${PACKAGE}_tag).csh; \
     13          $(cmtexe) setup -tag=$(tags) | sed -e 's#`${CMTROOT}/mgr/cmt system`#$(${PACKAGE}_tag)#' >$(${PACKAGE}_tag).csh; \
    1414        fi
    1515
     
    2020        @if test "$(nocheck)" = ""; then \
    2121          /bin/echo "Rebuilding $@"; \
    22           $(cmtexe) setup -quiet -sh -tag=$(tags) | sed -e 's#`${CMTROOT}/mgr/cmt system`#$(${PACKAGE}_tag)#' >$(${PACKAGE}_tag).csh; \
     22          $(cmtexe) setup -sh -tag=$(tags) | sed -e 's#`${CMTROOT}/mgr/cmt system`#$(${PACKAGE}_tag)#' >$(${PACKAGE}_tag).csh; \
    2323        fi
    2424
     
    2727
    2828env.make ::
    29         @printenv >env.make.tmp; $(cmtexe) -quiet check files env.make.tmp env.make
     29        @printenv >env.make.tmp; $(cmtexe) check files env.make.tmp env.make
    3030
    3131$(${PACKAGE}_tag).make : requirements $(use_requirements)
    3232        @if test ! -d $(bin) ; then $(mkdir) -p $(bin); fi; \
    3333          if test -f $(${PACKAGE}_tag).make; then /bin/rm -f $(${PACKAGE}_tag).make; fi; \
    34           $(cmtexe) -quiet -tag=$(tags) build tag_makefile >t$$$$; mv t$$$$ $(${PACKAGE}_tag).make ; \
    35           $(cmtexe) -quiet -tag=$(tags) show uses >t$$$$; mv t$$$$ uses.make ; \
     34          $(cmtexe) -tag=$(tags) build tag_makefile >t$$$$; mv t$$$$ $(${PACKAGE}_tag).make ; \
     35          $(cmtexe) -tag=$(tags) show uses >t$$$$; mv t$$$$ uses.make ; \
    3636          $(cmtexe) -tag=$(tags) show tags >t$$$$; mv t$$$$ tags.make
    3737
  • CMT/HEAD/mgr/fragments/make_setup_nmake

    r11 r459  
    1919$(${PACKAGE}_tag).make : requirements ${use_requirements}
    2020        @echo "Now rebuilding $@"
    21 ###     @mkdir -p $(bin); touch $(${PACKAGE}_tag).make; ${CMTROOT}/mgr/cmt -quiet build tag_makefile -tag=$(${PACKAGE}_tag) >t$$$$; mv t$$$$ $(${PACKAGE}_tag).make
     21###     @mkdir -p $(bin); touch $(${PACKAGE}_tag).make; ${CMTROOT}/mgr/cmt build tag_makefile -tag=$(${PACKAGE}_tag) >t$$$$; mv t$$$$ $(${PACKAGE}_tag).make
    2222
    2323-include $(${PACKAGE}_tag).make
  • CMT/HEAD/mgr/fragments/nmake/check_application_header

    r23 r459  
    55${CONSTITUENT}check ::
    66        @echo "------> starting ${CONSTITUENT}check"
    7         @$(cmtexe) -quiet build -nmake constituent_makefile ${CONSTITUENT}
     7        @$(cmtexe) build -nmake constituent_makefile ${CONSTITUENT}
    88        $(MAKE) /f ${CONSTITUENT}.nmake build_strategy=keep_makefiles ${CONSTITUENT}check
    99
  • CMT/HEAD/mgr/fragments/nmake/constituent

    r445 r459  
    1616!endif
    1717
    18 !if [cmt -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
     18!if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
    1919!endif
    2020
    21 !if [$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0
     21!if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0
    2222!endif
    2323
     
    3434        @set include=$(include)
    3535        @set lib=$(lib)
    36         @$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile ${CONSTITUENT}
     36        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile ${CONSTITUENT}
    3737        @move ${CONSTITUENT}.nmake $(bin)
    3838        $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done
  • CMT/HEAD/mgr/fragments/nmake/constituent_lock

    r445 r459  
    1616!endif
    1717
    18 !if [cmt -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
     18!if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
    1919!endif
    2020
    21 !if [$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0
     21!if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0
    2222!endif
    2323
     
    3434        @set include=$(include)
    3535        @set lib=$(lib)
    36         @$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile ${CONSTITUENT}
     36        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile ${CONSTITUENT}
    3737        @move ${CONSTITUENT}.nmake $(bin)
    3838        $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done
  • CMT/HEAD/mgr/fragments/nmake/constituents_header

    r445 r459  
    1515!endif
    1616
    17 !if [cmt -quiet build tag_makefile -tag_add=$(tags) >$(${PACKAGE}_tag).nmake] == 0
     17!if [cmt build tag_makefile -tag_add=$(tags) >$(${PACKAGE}_tag).nmake] == 0
    1818!endif
    1919
     
    3030
    3131env.nmake ::
    32         @set >env.nmake.tmp; $(cmtexe) -quiet check files env.nmake.tmp env.nmake
     32        @set >env.nmake.tmp; $(cmtexe) check files env.nmake.tmp env.nmake
    3333
    3434all ::
     
    4444        $(echo) (constituents.nmake) Rebuilding setup.nmake
    4545        @if not exist $(bin) mkdir $(bin)
    46         @$(cmtexe) -quiet -tag=$(tags) show setup   >$(cmt_setup_pid)
     46        @$(cmtexe) -tag=$(tags) show setup   >$(cmt_setup_pid)
    4747        $(echo) setup.nmake ok
    4848
  • CMT/HEAD/mgr/fragments/nmake/generator_header

    r23 r459  
    99${dir}${out}_stamp ::
    1010        @echo ${out}
    11         $(cmtexe) -quiet expand model "${model}" > ${dir}${out}_temp
    12         $(cmtexe) -quiet check files ${dir}${out}_temp ${dir}${out}
     11        $(cmtexe) expand model "${model}" > ${dir}${out}_temp
     12        $(cmtexe) check files ${dir}${out}_temp ${dir}${out}
    1313        @echo ${CONSTITUENT} >${dir}${out}_stamp
    1414
  • CMT/HEAD/mgr/fragments/nmake/lex

    r23 r459  
    55        $(lex_silent) $(lex) ${FILENAME}
    66        sed -e 's/yy/${NAME}YY/g' -e 's/LexYY/YY/g' -e 's/ = {stdin}//' -e 's/ = {stdout}//' lex.yy.c > lex.yy.c.tmp
    7         $(cmtexe) -quiet check_files lex.yy.c.tmp ${NAME}.c
     7        $(cmtexe) check_files lex.yy.c.tmp ${NAME}.c
    88        del lex.yy.c
    99        $(lex_silent) $(ccomp) /Fo"$(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.obj" $(use_pp_cflags) $(${CONSTITUENT}_pp_cflags) $(app_${CONSTITUENT}_pp_cflags) $(${NAME}_pp_cflags) $(use_cflags) $(${CONSTITUENT}_cflags) $(app_${CONSTITUENT}_cflags) $(${NAME}_cflags) $(${NAME}_${FILESUFFIX}_cflags) ${ADDINCLUDE} $(src)${NAME}.c
  • CMT/HEAD/mgr/fragments/nmake/lex_library

    r23 r459  
    55        $(lex_silent) $(lex) ${FILENAME}
    66        sed -e 's/yy/${NAME}YY/g' -e 's/LexYY/YY/g' -e 's/ = {stdin}//' -e 's/ = {stdout}//' lex.yy.c > lex.yy.c.tmp
    7         $(cmtexe) -quiet check_files lex.yy.c.tmp ${NAME}.c
     7        $(cmtexe) check_files lex.yy.c.tmp ${NAME}.c
    88        del lex.yy.c
    99        $(lex_silent) $(ccomp) /Fo"$(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.obj" $(use_pp_cflags) $(${CONSTITUENT}_pp_cflags) $(lib_${CONSTITUENT}_pp_cflags) $(${NAME}_pp_cflags) $(use_cflags) $(${CONSTITUENT}_cflags) $(lib_${CONSTITUENT}_cflags) $(${NAME}_cflags) $(${NAME}_${FILESUFFIX}_cflags) ${ADDINCLUDE} $(src)${NAME}.c
  • CMT/HEAD/mgr/fragments/nmake/yacc

    r23 r459  
    55        $(yacc_silent) $(yacc) ${FILENAME}
    66        sed -e 's/yy/${NAME}YY/g' -e 's/ParseYY/YY/g' y.tab.c > y.tab.c.tmp
    7         $(cmtexe) -quiet check_files y.tab.c.tmp ${NAME}.c
     7        $(cmtexe) check_files y.tab.c.tmp ${NAME}.c
    88        sed -e 's/yy/${NAME}YY/g' -e 's/ParseYY/YY/g' y.tab.h > y.tab.h.tmp
    9         $(cmtexe) -quiet check_files y.tab.h.tmp ${NAME}.h
     9        $(cmtexe) check_files y.tab.h.tmp ${NAME}.h
    1010        del y.tab.[ch]
    1111        $(yacc_silent) $(ccomp) /Fo"$(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.obj" $(use_pp_cflags) $(${CONSTITUENT}_pp_cflags) $(app_${CONSTITUENT}_pp_cflags) $(${NAME}_pp_cflags) $(use_cflags) $(${CONSTITUENT}_cflags) $(app_${CONSTITUENT}_cflags) $(${NAME}_cflags) $(${NAME}_${FILESUFFIX}_cflags) ${ADDINCLUDE} $(src)${NAME}.c
  • CMT/HEAD/mgr/fragments/nmake/yacc_library

    r23 r459  
    55        $(yacc_silent) $(yacc) ${FILENAME}
    66        sed -e 's/yy/${NAME}YY/g' -e 's/ParseYY/YY/g' y.tab.c > y.tab.c.tmp
    7         $(cmtexe) -quiet check_files y.tab.c.tmp ${NAME}.c
     7        $(cmtexe) check_files y.tab.c.tmp ${NAME}.c
    88        sed -e 's/yy/${NAME}YY/g' -e 's/ParseYY/YY/g' y.tab.h > y.tab.h.tmp
    9         $(cmtexe) -quiet check_files y.tab.h.tmp ${NAME}.h
     9        $(cmtexe) check_files y.tab.h.tmp ${NAME}.h
    1010        del y.tab.[ch]
    1111        $(yacc_silent) $(ccomp) /Fo"$(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.obj" $(use_pp_cflags) $(${CONSTITUENT}_pp_cflags) $(lib_${CONSTITUENT}_pp_cflags) $(${NAME}_pp_cflags) $(use_cflags) $(${CONSTITUENT}_cflags) $(lib_${CONSTITUENT}_cflags) $(${NAME}_cflags) $(${NAME}_${FILESUFFIX}_cflags) ${ADDINCLUDE} $(src)${NAME}.c
  • CMT/HEAD/mgr/requirements

    r430 r459  
    405405      VisualC                 "copy "
    406406
    407 macro build_library_links  "$(cmtexe) build library_links -quiet -tag=$(tags)"
    408 macro remove_library_links "$(cmtexe) remove library_links -quiet -tag=$(tags)"
     407macro build_library_links  "$(cmtexe) build library_links -tag=$(tags)"
     408macro remove_library_links "$(cmtexe) remove library_links -tag=$(tags)"
    409409
    410410#
     
    418418
    419419macro build_prototype    "$(cmtexe) build prototype"
    420 macro build_dependencies "$(cmtexe) -quiet -tag=$(tags) build dependencies"
     420macro build_dependencies "$(cmtexe) -tag=$(tags) build dependencies"
    421421macro build_triggers     "$(cmtexe) build triggers"
    422422
  • CMT/HEAD/source/cmt.h

    r438 r459  
    100100  static void configure_uname_tag ();
    101101  static void configure_version_tag ();
     102  //  static void configure_cmt_message ();
     103  static void configure_cmt_message (const ArgParser& ap);
    102104
    103105  static void do_awk (const ArgParser& ap);
     
    222224  static bool get_all_sets_done ();
    223225
     226  static void get_cmt_flags (CmtSystem::cmt_string_vector& flags);
     227  static cmt_string get_cmt_flags ();
     228  static bool set_cmt_flags (const cmt_string& flags);
     229  static bool add_cmt_flag (const cmt_string& flag);
     230
    224231  /// If a project file exists above the current directory we don't need CMTPATH
    225232  static void guess_current_project ();
  • CMT/HEAD/source/cmt_awk.cxx

    r423 r459  
    1313#include "cmt_awk.h"
    1414#include "cmt_system.h"
     15#include "cmt_log.h"
    1516
    1617class Parser
     
    504505      if (line.find ("\n") == cmt_string::npos)
    505506        {
    506           cerr << "#CMT> Warning: Line too long and truncated in PAwk::run for command " << command << endl;
     507          CmtMessage::warning ("Line too long and truncated in PAwk::run for command " + command);
     508          //          cerr << "#CMT> Warning: Line too long and truncated in PAwk::run for command " << command << endl;
    507509        }
    508510
  • CMT/HEAD/source/cmt_commands.cxx

    r428 r459  
    1010#include "cmt_symbol.h"
    1111#include "cmt_project.h"
     12#include "cmt_log.h"
    1213
    1314ArgParser::ArgParser (CmtContext& context) : cmt(context), argc(0), argv(0), mode(Csh)
     
    503504          // We have unexpected arguments (not handled by the command handler). This may sign
    504505          // an unprotected handler implementation.
    505           if (!cmt.m_quiet) cerr << "#CMT> warning : unexpected parameter " << reduced_arg << endl;
     506          CmtMessage::warning ("unexpected parameter " + reduced_arg);
     507          //      if (!cmt.m_quiet) cerr << "#CMT> warning : unexpected parameter " << reduced_arg << endl;
    506508        }
    507509      else
     
    568570          else if (argc > 0)
    569571            {
    570               if (!cmt.m_quiet) cerr << "#CMT> syntax error : wrong arguments" << endl;
     572              CmtMessage::error ("syntax: wrong arguments");
     573//            if (!cmt.m_quiet) cerr << "#CMT> syntax error : wrong arguments" << endl;
    571574              cmt.m_action = action_build_constituent_makefile;
    572575              help_action = action_help;
     
    574577          else
    575578            {
    576               if (!cmt.m_quiet) cerr << "#CMT> syntax error : constituent name missing" << endl;
     579              CmtMessage::error ("syntax: constituent name missing");
     580              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : constituent name missing" << endl;
    577581              cmt.m_action = action_build_constituent_makefile;
    578582              help_action = action_help;
     
    593597          else
    594598            {
    595               if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing " << endl;
     599              CmtMessage::error ("syntax: arguments missing");
     600              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing " << endl;
    596601              help_action = action_help;
    597602              cmt.m_action = action_build_dependencies;
     
    637642          else
    638643            {
    639               if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing " << endl;
     644              CmtMessage::error ("syntax: arguments missing");
     645              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing " << endl;
    640646              help_action = action_help;
    641647              cmt.m_action = action_build_os9_makefile;
     
    651657          else
    652658            {
    653               if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing" << endl;
     659              CmtMessage::error ("syntax: arguments missing");
     660              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing" << endl;
    654661              help_action = action_help;
    655662              cmt.m_action = action_build_prototype;
     
    679686          else
    680687            {
    681               if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing" << endl;
     688              CmtMessage::error ("syntax: arguments missing");
     689              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing" << endl;
    682690              help_action = action_help;
    683691              cmt.m_action = action_build_triggers;
     
    693701          else
    694702            {
    695               if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing" << endl;
     703              CmtMessage::error ("syntax: arguments missing");
     704              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing" << endl;
    696705              help_action = action_help;
    697706              cmt.m_action = action_build_windefs;
     
    700709      else
    701710        {
    702           if (!cmt.m_quiet) cerr << "#CMT> syntax error : wrong build argument" << endl;
     711          CmtMessage::error ("syntax: wrong build argument");
     712          //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : wrong build argument" << endl;
    703713          help_action = action_help;
    704714          cmt.m_action = action_build;
     
    707717  else
    708718    {
    709       if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to build" << endl;
     719      CmtMessage::error ("syntax: don't know what to build");
     720      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to build" << endl;
    710721      help_action = action_help;
    711722      cmt.m_action = action_build;
     
    738749              else
    739750                {
    740                   if (!cmt.m_quiet) cerr << "#CMT> syntax error : reference file name missing"
    741                                         << endl;
     751                  CmtMessage::error ("syntax: reference file name missing");
     752                  //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : reference file name missing" << endl;
    742753                  help_action = action_help;
    743754                  cmt.m_action = action_check_files;
     
    746757          else
    747758            {
    748               if (!cmt.m_quiet) cerr << "#CMT> syntax error : file name missing" << endl;
     759              CmtMessage::error ("syntax: file name missing");
     760              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : file name missing" << endl;
    749761              help_action = action_help;
    750762              cmt.m_action = action_check_files;
     
    760772          else
    761773            {
    762               if (!cmt.m_quiet) cerr << "#CMT> syntax error : package name missing" << endl;
     774              CmtMessage::error ("syntax: package name missing");
     775              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : package name missing" << endl;
    763776              help_action = action_help;
    764777              cmt.m_action = action_check_version;
     
    767780      else
    768781        {
    769           if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad check option" << endl;
     782          CmtMessage::error ("syntax: bad check option");
     783          //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad check option" << endl;
    770784          help_action = action_help;
    771785          cmt.m_action = action_check;
     
    774788  else
    775789    {
    776       if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to check" << endl;
     790      CmtMessage::error ("syntax: don't know what to check");
     791      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to check" << endl;
    777792      help_action = action_help;
    778793      cmt.m_action = action_check;
     
    792807      else
    793808        {
    794           if (!cmt.m_quiet) cerr << "#CMT> syntax error : reference file missing" << endl;
     809          CmtMessage::error ("syntax: reference file name missing");
    795810          help_action = action_help;
    796811          cmt.m_action = action_check_files;
     
    799814  else
    800815    {
    801       if (!cmt.m_quiet) cerr << "#CMT> syntax error : file name missing" << endl;
     816      CmtMessage::error ("syntax: file name missing");
    802817      help_action = action_help;
    803818      cmt.m_action = action_check_files;
     
    814829  else
    815830    {
    816       if (!cmt.m_quiet) cerr << "#CMT> syntax error : checkout arguments missing" << endl;
     831      CmtMessage::error ("syntax: checkout arguments missing");
     832      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : checkout arguments missing" << endl;
    817833      help_action = action_help;
    818834      cmt.m_action = action_checkout;
     
    839855  else
    840856    {
    841       if (!cmt.m_quiet) cerr << "#CMT> syntax error : create arguments missing" << endl;
     857      CmtMessage::error ("syntax: create arguments missing");
     858      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : create arguments missing" << endl;
    842859      help_action = action_help;
    843860      cmt.m_action = action_create;
     
    854871  else
    855872    {
    856       if (!cmt.m_quiet) cerr << "#CMT> syntax error : create_project arguments missing" << endl;
     873      CmtMessage::error ("syntax: create_project arguments missing");
     874      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : create_project arguments missing" << endl;
    857875      help_action = action_help;
    858876      cmt.m_action = action_create_project;
     
    869887  else
    870888    {
    871       if (!cmt.m_quiet) cerr << "#CMT> syntax error : cvsbranches arguments missing" << endl;
     889      CmtMessage::error ("syntax: cvsbranches arguments missing");
     890      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : cvsbranches arguments missing" << endl;
    872891      help_action = action_help;
    873892      cmt.m_action = action_cvsbranches;
     
    904923  else
    905924    {
    906       if (!cmt.m_quiet) cerr << "#CMT> syntax error : package name missing" << endl;
     925      CmtMessage::error ("syntax: package name missing");
    907926      help_action = action_help;
    908927      cmt.m_action = action_cvstags;
     
    929948  else
    930949    {
    931       if (!cmt.m_quiet) cerr << "#CMT> syntax error : action not specified" << endl;
     950      CmtMessage::error ("syntax: action not specified");
     951      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : action not specified" << endl;
    932952      help_action = action_help;
    933953      cmt.m_action = action_do;
     
    951971          else
    952972            {
    953               if (!cmt.m_quiet) cerr << "#CMT> syntax error : model not specified" << endl;
     973              CmtMessage::error ("syntax: model not specified");
     974              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : model not specified" << endl;
    954975              help_action = action_help;
    955976              cmt.m_action = action_expand_model;
     
    958979      else
    959980        {
    960           if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad expand option" << endl;
     981          CmtMessage::error ("syntax: bad expand option");
     982          //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad expand option" << endl;
    961983          help_action = action_help;
    962984          cmt.m_action = action_expand_model;
     
    965987  else
    966988    {
    967       if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to expand" << endl;
     989      CmtMessage::error ("syntax: don't know what to expand");
     990      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to expand" << endl;
    968991      help_action = action_help;
    969992      cmt.m_action = action_expand_model;
     
    9801003  else
    9811004    {
    982       if (!cmt.m_quiet) cerr << "#CMT> syntax error : file to filter not specified" << endl;
     1005      CmtMessage::error ("syntax: file to filter not specified");
     1006      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : file to filter not specified" << endl;
    9831007      help_action = action_help;
    9841008      cmt.m_action = action_filter;
     
    10171041      else
    10181042        {
    1019           if (!cmt.m_quiet) cerr << "#CMT> syntax error : version missing" << endl;
     1043          CmtMessage::error ("syntax: version missing");
     1044          //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : version missing" << endl;
    10201045          help_action = action_help;
    10211046          cmt.m_action = action_lock;
     
    10651090          else
    10661091            {
    1067               if (!cmt.m_quiet) cerr << "#CMT> syntax error : version missing" << endl;
     1092              CmtMessage::error ("syntax: version missing");
    10681093              help_action = action_help;
    10691094              cmt.m_action = action_remove;
     
    10731098  else
    10741099    {
    1075       if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to remove" << endl;
     1100      CmtMessage::error ("syntax: don't know what to remove");
     1101      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to remove" << endl;
    10761102      help_action = action_help;
    10771103      cmt.m_action = action_remove;
     
    10881114  else
    10891115    {
    1090       if (!cmt.m_quiet) cerr << "#CMT> syntax error : run arguments missing" << endl;
     1116      CmtMessage::error ("syntax: run arguments missing");
     1117      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : run arguments missing" << endl;
    10911118      help_action = action_help;
    10921119      cmt.m_action = action_run;
     
    11031130  else
    11041131    {
    1105       if (!cmt.m_quiet) cerr << "#CMT> syntax error : run_sequence arguments missing" << endl;
     1132      CmtMessage::error ("syntax: run_sequence arguments missing");
     1133      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : run_sequence arguments missing" << endl;
    11061134      help_action = action_help;
    11071135      cmt.m_action = action_run_sequence;
     
    11351163      else
    11361164        {
    1137           if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad set argument" << endl;
     1165          CmtMessage::error ("syntax: bad set argument");
     1166          //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad set argument" << endl;
    11381167          help_action = action_help;
    11391168          //cmt.m_action = action_set;
     
    11421171  else
    11431172    {
    1144       if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to set" << endl;
     1173      CmtMessage::error ("syntax: don't know what to set");
     1174      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to set" << endl;
    11451175      help_action = action_help;
    11461176      //cmt.m_action = action_set;
     
    11731203          else
    11741204            {
    1175               if (!cmt.m_quiet) cerr << "#CMT> syntax error : action name missing" << endl;
     1205              CmtMessage::error ("syntax: action name missing");
     1206              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : action name missing" << endl;
    11761207              help_action = action_help;
    11771208              cmt.m_action = action_show_action;
     
    11971228          else
    11981229            {
    1199               if (!cmt.m_quiet) cerr << "#CMT> syntax error : action name missing" << endl;
     1230              CmtMessage::error ("syntax: action name missing");
    12001231              help_action = action_help;
    12011232              cmt.m_action = action_show_action_value;
     
    12461277          else
    12471278            {
    1248               if (!cmt.m_quiet) cerr << "#CMT> syntax error : package name missing" << endl;
     1279              CmtMessage::error ("syntax: package name missing");
    12491280              help_action = action_help;
    12501281              cmt.m_action = action_show_clients;
     
    12641295          else
    12651296            {
    1266               if (!cmt.m_quiet) cerr << "#CMT> syntax error : constituent name missing" << endl;
     1297              CmtMessage::error ("syntax: constituent name missing");
     1298              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : constituent name missing" << endl;
    12671299              help_action = action_help;
    12681300              cmt.m_action = action_show_constituent;
     
    12901322          else
    12911323            {
    1292               if (!cmt.m_quiet) cerr << "#CMT> syntax error : fragment name missing" << endl;
     1324              CmtMessage::error ("syntax: fragment name missing");
     1325              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : fragment name missing" << endl;
    12931326              help_action = action_help;
    12941327              cmt.m_action = action_show_fragment;
     
    13161349          else
    13171350            {
    1318               if (!cmt.m_quiet) cerr << "#CMT> syntax error : language name missing" << endl;
     1351              CmtMessage::error ("syntax: language name missing");
     1352              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : language name missing" << endl;
    13191353              help_action = action_help;
    13201354              cmt.m_action = action_show_language;
     
    13341368          else
    13351369            {
    1336               if (!cmt.m_quiet) cerr << "#CMT> syntax error : macro name missing" << endl;
     1370              CmtMessage::error ("syntax: macro name missing");
     1371              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : macro name missing" << endl;
    13371372              help_action = action_help;
    13381373              cmt.m_action = action_show_macro;
     
    13581393          else
    13591394            {
    1360               if (!cmt.m_quiet) cerr << "#CMT> syntax error : macro name missing" << endl;
     1395              CmtMessage::error ("syntax: macro name missing");
    13611396              help_action = action_help;
    13621397              cmt.m_action = action_show_macro_value;
     
    13981433          else
    13991434            {
    1400               if (!cmt.m_quiet) cerr << "#CMT> syntax error : pattern name missing" << endl;
     1435              CmtMessage::error ("syntax: pattern name missing");
     1436              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : pattern name missing" << endl;
    14011437              help_action = action_help;
    14021438              cmt.m_action = action_show_pattern;
     
    14521488          else
    14531489            {
    1454               if (!cmt.m_quiet) cerr << "#CMT> syntax error : set name missing" << endl;
     1490              CmtMessage::error ("syntax: set name missing");
     1491              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : set name missing" << endl;
    14551492              help_action = action_help;
    14561493              cmt.m_action = action_show_set_value;
     
    14661503          else
    14671504            {
    1468               if (!cmt.m_quiet) cerr << "#CMT> syntax error : set name missing" << endl;
     1505              CmtMessage::error ("syntax: set name missing");
    14691506              help_action = action_help;
    14701507              cmt.m_action = action_show_set;
     
    15151552          else
    15161553            {
    1517               if (!cmt.m_quiet) cerr << "#CMT> syntax error : package name missing" << endl;
     1554              CmtMessage::error ("syntax: package name missing");
    15181555              help_action = action_help;
    15191556              cmt.m_action = action_show_use_paths;
     
    15451582          else
    15461583            {
    1547               if (!cmt.m_quiet) cerr << "#CMT> syntax error : package name missing" << endl;
     1584              CmtMessage::error ("syntax: package name missing");
    15481585              help_action = action_help;
    15491586              cmt.m_action = action_show_versions;
     
    15521589      else
    15531590        {
    1554           if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad show argument" << endl;
     1591          CmtMessage::error ("syntax: bad show argument");
     1592          //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : bad show argument" << endl;
    15551593          help_action = action_help;
    15561594          cmt.m_action = action_show;
     
    15591597  else
    15601598    {
    1561       if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to show" << endl;
     1599      CmtMessage::error ("syntax: don't know what to show");
     1600      //      if (!cmt.m_quiet) cerr << "#CMT> syntax error : don't know what to show" << endl;
    15621601      help_action = action_help;
    15631602      cmt.m_action = action_show;
     
    15961635      else
    15971636        {
    1598           if (!cmt.m_quiet) cerr << "#CMT> syntax error : version missing" << endl;
     1637          CmtMessage::error ("syntax: version missing");
    15991638          help_action = action_help;
    16001639          cmt.m_action = action_unlock;
     
    16261665{
    16271666  cmt.m_disable_warnings = true;
     1667  if (CmtMessage::level () <= Warning)
     1668    CmtMessage::set_level (Error);
    16281669}
    16291670
     
    16311672{
    16321673  cmt.m_quiet = true;
     1674  if (CmtMessage::level () <= Error)
     1675    CmtMessage::set_level (Fatal);
    16331676}
    16341677
     
    16371680{
    16381681  cmt.m_warnings = true;
     1682  if (CmtMessage::level () != Warning)
     1683    CmtMessage::set_level (Warning);
    16391684}
    16401685
     
    17471792void ArgParser::option_e ()
    17481793{
    1749   cerr << "#CMT> Warning: extra statement = " << arg << endl;
     1794  CmtMessage::warning ("extra statement = " + arg);
     1795  //  cerr << "#CMT> Warning: extra statement = " << arg << endl;
    17501796  extra_line = arg;
    17511797}
  • CMT/HEAD/source/cmt_constituent.cxx

    r400 r459  
    1515#include "cmt_system.h"
    1616#include "cmt_database.h"
     17#include "cmt_log.h"
    1718
    1819/*----------------------------------------------------------*/
     
    248249        //if (!Cmt::get_quiet ())
    249250        //{
    250         cerr << "#CMT> Warning: bad option "
    251              << w << " in constituent " << m_constituent.name << endl;
     251        CmtMessage::warning ("bad option " + w + " in constituent " +
     252                             m_constituent.name);
     253        //      cerr << "#CMT> Warning: bad option "
     254        //           << w << " in constituent " << m_constituent.name << endl;
    252255        //CmtError::set (CmtError::execution_error, cmd);
    253256        //}
  • CMT/HEAD/source/cmt_cvs.cxx

    r454 r459  
    1414#include "cmt_symbol.h"
    1515#include "cmt_project.h"
     16#include "cmt_log.h"
    1617
    1718/**
     
    272273    if (m_verbose || m_simulation)
    273274      {
    274         cerr << "#CMT> Executing [" << command << "]" << endl;
     275        CmtMessage::info ("Executing [" + command + "]");
     276        //      cerr << "#CMT> Executing [" << command << "]" << endl;
    275277      }
    276278   
     
    296298            retry++;
    297299           
    298             cerr << "# " << message << ": status=" << status << endl;
    299             cerr << "#---------------------------------------------------------" << endl;
     300            char stat[8];
     301            sprintf (stat, "%d", status);
     302            CmtMessage::error ("# " + message + ": status=" + stat);
     303            CmtMessage::error ("#---------------------------------------------------------");
     304            //      cerr << "# " << message << ": status=" << status << endl;
     305            //      cerr << "#---------------------------------------------------------" << endl;
    300306           
    301307            if (retry > 5) exit(0);
     
    314320    if (m_verbose || m_simulation)
    315321      {
    316         cerr << "#CMT> Executing [" << command << "]" << endl;
     322        CmtMessage::info ("Executing [" + command + "]");
     323        //      cerr << "#CMT> Executing [" << command << "]" << endl;
    317324      }
    318325   
     
    404411        if (found)
    405412          {
    406             cerr << "#CMT> Protocol level " << m_protocol_level << endl;
     413            CmtMessage::info ("Protocol level " + m_protocol_level);
     414            //      cerr << "#CMT> Protocol level " << m_protocol_level << endl;
    407415          }
    408416        else
    409417          {
    410             cerr << "#CMT> The CVS pluggin is not installed or is not at protocol level " << m_protocol_level << endl;
     418            CmtMessage::error ("The CVS pluggin is not installed or is not at protocol level " + m_protocol_level);
     419            //      cerr << "#CMT> The CVS pluggin is not installed or is not at protocol level " << m_protocol_level << endl;
    411420          }
    412421      }
     
    457466        if (!CmtSystem::mkdir (tmp_dir))
    458467          {
    459             cerr << "#CMT> Cannot create the temporary directory [" << tmp_dir << "]" << endl;
     468            CmtMessage::error ("Cannot create the temporary directory [" + tmp_dir + "]");
     469            //      cerr << "#CMT> Cannot create the temporary directory [" << tmp_dir << "]" << endl;
    460470            return;
    461471          }
     
    466476    if (!CmtSystem::cd (tmp_dir))
    467477      {
    468         cerr << "#CMT> Cannot move to the temporary directory " << tmp_dir << endl;
     478        CmtMessage::error ("Cannot move to the temporary directory " + tmp_dir);
     479        //      cerr << "#CMT> Cannot move to the temporary directory " << tmp_dir << endl;
    469480       
    470481        if (m_verbose)
    471482          {
    472             cerr << "#CMT> now removing tmp_dir " << tmp_dir << " home=" << home_dir << endl;
     483            CmtMessage::info ("now removing tmp_dir " + tmp_dir + " home=" + home_dir);
     484            //      cerr << "#CMT> now removing tmp_dir " << tmp_dir << " home=" << home_dir << endl;
    473485          }
    474486       
     
    480492    if (m_verbose)
    481493      {
    482         cerr << "#CMT> cvs infos are now obtained from the temporary directory " << CmtSystem::pwd () << endl; 
     494        CmtMessage::info ("cvs infos are now obtained from the temporary directory " + CmtSystem::pwd ()); 
     495        //      cerr << "#CMT> cvs infos are now obtained from the temporary directory " << CmtSystem::pwd () << endl; 
    483496      }
    484497   
     
    536549    if (m_verbose)
    537550      {
    538         cerr << "#CMT> now removing tmp_dir " << tmp_dir << " home=" << home_dir << endl;
     551        CmtMessage::info ("now removing tmp_dir " + tmp_dir + " home=" + home_dir);
     552        //      cerr << "#CMT> now removing tmp_dir " << tmp_dir << " home=" << home_dir << endl;
    539553      }
    540554   
     
    570584    if (!check_protocol ())
    571585      {
    572         cerr << "#CMT> The CVS pluggin is not installed or is not at protocol level " << m_protocol_level << endl;
     586        CmtMessage::error ("The CVS pluggin is not installed or is not at protocol level " + m_protocol_level);
     587        //      cerr << "#CMT> The CVS pluggin is not installed or is not at protocol level " << m_protocol_level << endl;
    573588        return;
    574589      }
     
    576591    if (module == "")
    577592      {
    578         cerr << "#CMT> cmt cvs needs a module name" << endl;
     593        CmtMessage::error ("cmt cvs needs a module name");
     594        //      cerr << "#CMT> cmt cvs needs a module name" << endl;
    579595        return;
    580596      }
     
    584600        if (m_verbose)
    585601          {
    586             cerr << "#CMT> cvs infos for module " << module << " already there" << endl;
     602            CmtMessage::info ("cvs infos for module " + module + " already there");
     603            //      cerr << "#CMT> cvs infos for module " << module << " already there" << endl;
    587604          }
    588605      }
     
    836853    if (m_verbose)
    837854      {
    838         cerr << "#CMT> requesting cvs infos onto module " << module << endl;
     855        CmtMessage::info ("requesting cvs infos onto module " + module);
     856        //      cerr << "#CMT> requesting cvs infos onto module " << module << endl;
    839857      }
    840858   
     
    844862      {
    845863        versions = "";
    846         cerr << "#CMT> Product " << product << " not found in ${CVSROOT}" << endl;
     864        CmtMessage::error ("Product " + product + " not found in ${CVSROOT}");
     865        //      cerr << "#CMT> Product " << product << " not found in ${CVSROOT}" << endl;
    847866        return (false);
    848867      }
     
    10001019    if (m_simulation)
    10011020      {
    1002         cerr << "#CMT> Would create the " << dir << " directory" << endl;
     1021        CmtMessage::info ("Would create the " + dir + " directory");
     1022        //      cerr << "#CMT> Would create the " << dir << " directory" << endl;
    10031023      }
    10041024    else
     
    10081028            if (m_verbose)
    10091029              {
    1010                 cerr << "#CMT> About to mkdir " << dir << endl;
     1030                CmtMessage::info ("About to mkdir " + dir);
     1031                //              cerr << "#CMT> About to mkdir " << dir << endl;
    10111032              }
    10121033
     
    10141035            if (!CmtSystem::cd (dir))
    10151036              {
    1016                 cerr << "# Error creating the directory :" << dir << endl;
    1017                 cerr << "#---------------------------------------------------------" << endl;
     1037                CmtMessage::error ("# Cannot cd into the directory: " + dir);
     1038                CmtMessage::error ("#---------------------------------------------------------");
     1039                //              cerr << "# Error creating the directory :" << dir << endl;
     1040                //              cerr << "#---------------------------------------------------------" << endl;
    10181041                return (false);
    10191042              }
     
    10451068    if (m_verbose)
    10461069      {
    1047         cerr << "#CMT> CMTPATH=" << CmtSystem::getenv ("CMTPATH") << endl;
     1070        CmtMessage::info ("CMTPATH=" + CmtSystem::getenv ("CMTPATH"));
     1071        //      cerr << "#CMT> CMTPATH=" << CmtSystem::getenv ("CMTPATH") << endl;
    10481072      }
    10491073  }
     
    10631087    cmt_string dir = currentdir;
    10641088
    1065     cerr << "  # get project files into " << dir << endl;
     1089    CmtMessage::info ("get project files into " + dir);
     1090    //    cerr << "  # get project files into " << dir << endl;
    10661091
    10671092
     
    11271152        if (m_simulation)
    11281153          {
    1129             cerr << "#CMT> Would fill in the CVS/Root file with " << endl;
    1130             cerr << s << endl;
     1154            CmtMessage::info ("Would fill in the CVS/Root file with\n" + s);
     1155            //      cerr << "#CMT> Would fill in the CVS/Root file with " << endl;
     1156            //      cerr << s << endl;
    11311157          }
    11321158        else
     
    11341160            if (m_verbose)
    11351161              {
    1136                 cerr << "#CMT> Fill in the CVS/Root file with " << endl;
    1137                 cerr << s << endl;
     1162                CmtMessage::info ("Fill in the CVS/Root file with\n" + s);
     1163                //              cerr << "#CMT> Fill in the CVS/Root file with " << endl;
     1164                //              cerr << s << endl;
    11381165              }
    11391166            s.write (f);
     
    11601187        if (m_simulation)
    11611188          {
    1162             cerr << "#CMT> Would fill in the CVS/Repository file with " << endl;
    1163             cerr << s << endl;
     1189            CmtMessage::info ("Would fill in the CVS/Repository file with\n" + s);
     1190            //      cerr << "#CMT> Would fill in the CVS/Repository file with " << endl;
     1191            //      cerr << s << endl;
    11641192          }
    11651193        else
     
    11671195            if (m_verbose)
    11681196              {
    1169                 cerr << "#CMT> Fill in the CVS/Repository file with " << endl;
    1170                 cerr << s << endl;
     1197                CmtMessage::info ("Fill in the CVS/Repository file with\n" + s);
     1198                //              cerr << "#CMT> Fill in the CVS/Repository file with " << endl;
     1199                //              cerr << s << endl;
    11711200              }
    11721201            s.write (f);
     
    11761205    if (m_simulation)
    11771206      {
    1178         cerr << "#CMT> Would write the top CVS/Entries file with " << endl;
    1179         cerr << entries_text << endl;
     1207        CmtMessage::info ("Would write the top CVS/Entries file with\n" + entries_text);
     1208        //      cerr << "#CMT> Would write the top CVS/Entries file with " << endl;
     1209        //      cerr << entries_text << endl;
    11801210      }
    11811211    else
     
    11991229        if (m_verbose)
    12001230          {
    1201             cerr << "#CMT> Fill in the top CVS/Entries file with " << endl;
    1202             cerr << text << endl;
     1231            CmtMessage::info ("Fill in the top CVS/Entries file with\n" + text);
     1232            //      cerr << "#CMT> Fill in the top CVS/Entries file with " << endl;
     1233            //      cerr << text << endl;
    12031234          }
    12041235
     
    12261257    cmt_string dir = currentdir;
    12271258
    1228     cerr << "  # get top files " << endl;
     1259    CmtMessage::info ("get top files ");
     1260    //    cerr << "  # get top files " << endl;
    12291261           
    12301262    cmt_string command = "cvs -f -Q co -l ";
     
    12731305    if (m_verbose)
    12741306      {
    1275         cerr << "#CMT> Now getting subdirectories pwd=" << CmtSystem::pwd () << " dir=" << dir << endl;
     1307        CmtMessage::info ("Now getting subdirectories pwd=" + CmtSystem::pwd ()
     1308                          + " dir=" + dir);
     1309        //      cerr << "#CMT> Now getting subdirectories pwd=" << CmtSystem::pwd () << " dir=" << dir << endl;
    12761310      }
    12771311   
     
    13281362          { 
    13291363   
    1330             cerr << "# --> udapte the file timestamps" << endl;                 
     1364            CmtMessage::info ("udapte the file timestamps");                 
     1365            //            cerr << "# --> udapte the file timestamps" << endl;                 
    13311366            for (i = 0; i < branch_vector.size (); i++)
    13321367              {
     
    13711406      { 
    13721407   
    1373         cerr << "# --> udapte the file timestamps" << endl;                 
     1408        CmtMessage::info ("udapte the file timestamps");                 
     1409        //        cerr << "# --> udapte the file timestamps" << endl;                 
    13741410        for (i = 0; i < branch_vector.size (); i++)
    13751411          {     
     
    15621598
    15631599        add_cmtpath (here);
    1564 
    1565         cerr << "  # --> now getting project packages from the " << container << " " << here << endl;
     1600       
     1601        CmtMessage::info ("now getting project packages from the " + container + " " + here);
     1602        //      cerr << "  # --> now getting project packages from the " << container << " " << here << endl;
    15661603
    15671604        CmtSystem::cd (here);
     
    16871724    if (m_verbose)
    16881725      {
     1726        CmtMessage::info ("do_checkout_phase2> offset=" + offset
     1727                          + " " + structure_info + "=" + product
     1728                          + " specified_version=" + specified_version
     1729                          + " tag=" + tag
     1730                          + " pwd=" + CmtSystem::pwd ());
     1731        /*
    16891732        cerr << "#CMT> do_checkout_phase2> offset=" << offset
    16901733             << " " << structure_info << "=" << product
     
    16931736             << " pwd=" << CmtSystem::pwd ()
    16941737             << endl;
     1738        */
    16951739      }
    16961740   
     
    17121756    if (version == "")
    17131757      {
    1714         cerr << "# ================= No version specified for " << structure_info << " " << product << endl;
     1758        CmtMessage::warning ("================= No version specified for " + structure_info + " " + product);
     1759        //      cerr << "# ================= No version specified for " << structure_info << " " << product << endl;
    17151760        return;
    17161761      }
     
    17631808        if (cvs_tag.find ("*") != cmt_string::npos)
    17641809          {
     1810            CmtMessage::warning ("================= " + structure_info + " " + product
     1811                                 + " version " + cvs_tag + echo_ppath
     1812                                 + " has wild cards and will not be considered.");
     1813            /*
    17651814            cerr << "# ================= " << structure_info << " " << product
    17661815                 << " version " << cvs_tag << echo_ppath
    17671816                 << " has wild cards and will not be considered." << endl;
     1817            */
    17681818            return;
    17691819          }
     
    18021852    if (check_structure (dir, version))
    18031853      {
     1854        CmtMessage::info ("================= " + structure_info + " " + product
     1855                          + " version " + version + echo_ppath
     1856                          + " already installed.");     
     1857        /*
    18041858        cerr << "# ================= " << structure_info << " " << product
    18051859             << " version "            << version        << echo_ppath
    18061860             << " already installed."  << endl;
     1861        */
    18071862        recursive = false;
    18081863      }
     
    18151870        if (!really_checkout (offset, product, version, cvs_tag, module, dir, at_head))
    18161871          {
    1817             cerr << "# bad return from really_checkout_product" << endl;
     1872            CmtMessage::error ("bad return from really_checkout_product");
     1873            //      cerr << "# bad return from really_checkout_product" << endl;
    18181874            return;
    18191875          }
     
    18261882    if (m_simulation)
    18271883      {
    1828         cerr << "#CMT> " << structure_info << " directory not really created " << dir << endl;
     1884        CmtMessage::info (structure_info + " directory not really created " + dir);
     1885        //      cerr << "#CMT> " << structure_info << " directory not really created " << dir << endl;
    18291886      }
    18301887    else if (structure_info == "package")
     
    18321889        if (!CmtSystem::cd (dir))
    18331890          {
    1834             cerr << "#CMT> Package directory not created " << dir << endl;
     1891            CmtMessage::error ("Package directory not created " + dir);
     1892            //      cerr << "#CMT> Package directory not created " << dir << endl;
    18351893            return;
    18361894          }
     
    18711929            else
    18721930              {
    1873                 cerr << "# " << product << " not a CMT package" << endl;
     1931                CmtMessage::error (product + " not a CMT package");
     1932                //              cerr << "# " << product << " not a CMT package" << endl;
    18741933                return;
    18751934              }
     
    19211980        if (m_verbose)
    19221981          {
    1923             cerr << "#CMT> dir=" << dir << endl;
     1982            CmtMessage::info ("dir=" + dir);
     1983            //      cerr << "#CMT> dir=" << dir << endl;
    19241984          }
    19251985       
    19261986        if (!CmtSystem::cd (dir))
    19271987          {
    1928             cerr << "#CMT> Project directory not created " << dir << endl;
     1988            CmtMessage::error ("Project directory not created " + dir);
     1989            //      cerr << "#CMT> Project directory not created " << dir << endl;
    19291990            return;
    19301991          }
     
    19381999        if (!CmtSystem::test_file (file_name))
    19392000          {
    1940             cerr << "# " << product << " not a CMT project" << endl;
     2001            CmtMessage::error (product + " not a CMT project");
     2002            //      cerr << "# " << product << " not a CMT project" << endl;
    19412003            return;
    19422004          }
     
    19472009          }
    19482010
    1949         cerr << "# ================= Project " << product << " completed" << endl;
     2011        CmtMessage::info ("================= Project " + product + " completed");
     2012        //      cerr << "# ================= Project " << product << " completed" << endl;
    19502013
    19512014      }
     
    19682031    if (m_verbose)
    19692032      {
    1970         cerr << "#CMT> checkout phase1 module=" << module
    1971              << " version_dir=" << version_dir << " version_tag=" << version_tag << endl;
     2033        CmtMessage::info ("checkout phase1 module=" + module
     2034                          + " version_dir=" + version_dir + " version_tag=" + version_tag);
     2035        //      cerr << "#CMT> checkout phase1 module=" << module
     2036        //           << " version_dir=" << version_dir << " version_tag=" << version_tag << endl;
    19722037      }
    19732038
     
    19822047        if (m_verbose)
    19832048          {
    1984             cerr << "#CMT> Missing module name" << endl;
     2049            CmtMessage::info ("Missing module name");
     2050            //      cerr << "#CMT> Missing module name" << endl;
    19852051          }
    19862052        return;
     
    20012067      if (error_info != "")
    20022068        {
    2003           cerr << error_info << endl;
     2069          CmtMessage::error (error_info);
     2070          //      cerr << error_info << endl;
    20042071          return;
    20052072        }
     
    20232090        if (m_verbose)
    20242091          {
    2025             cerr << "#CMT> cumulated versions " << versions << endl;
     2092            CmtMessage::info ("cumulated versions " + versions);
     2093            //      cerr << "#CMT> cumulated versions " << versions << endl;
    20262094          }
    20272095
     
    20802148    if (m_verbose)
    20812149      {
    2082         cerr << "#CMT> about to checkout " << structure_info
    2083              << " " << product << " version " << version << " into " << top_dir << endl;
     2150        CmtMessage::info ("about to checkout " + structure_info
     2151                          + " " + product + " version " + version + " into " + top_dir);
     2152        //      cerr << "#CMT> about to checkout " << structure_info
     2153        //           << " " << product << " version " << version << " into " << top_dir << endl;
    20842154      }
    20852155
     
    21012171        if (!CmtSystem::test_file (file_name))
    21022172          {
    2103             cerr << "# " << product << " was not properly checked out and is missing its cmt/project.cmt file" << endl;
     2173            CmtMessage::error (product + " was not properly checked out and is missing its cmt/project.cmt file");
     2174            //      cerr << "# " << product << " was not properly checked out and is missing its cmt/project.cmt file" << endl;
    21042175            return;
    21052176          }
     
    21332204            else
    21342205              {
    2135                 cerr << "# " << product << " was not properly checked out and is missing its cmt/requirements file" << endl;
     2206                CmtMessage::error (product + " was not properly checked out and is missing its cmt/requirements file");
     2207                //              cerr << "# " << product << " was not properly checked out and is missing its cmt/requirements file" << endl;
    21362208                return;
    21372209              }
     
    21402212        if (m_verbose)
    21412213          {
    2142             cerr << "#CMT> product " << product << " has been checked out" << endl;
     2214            CmtMessage::info ("product " + product + " has been checked out");
     2215            //      cerr << "#CMT> product " << product << " has been checked out" << endl;
    21432216          }
    21442217       
     
    21982271    if (CmtSystem::getenv ("CVSROOT") == "")
    21992272      {
    2200         cerr << "# Please set CVSROOT first !" << endl;
     2273        CmtMessage::error ("Please set CVSROOT first !");
     2274        //      cerr << "# Please set CVSROOT first !" << endl;
    22012275        return;
    22022276      }
     
    22252299            if (error_info != "")
    22262300              {
    2227                 cerr << error_info << endl;
     2301                CmtMessage::error (error_info);
     2302                //              cerr << error_info << endl;
    22282303              }
    22292304            else
     
    22502325                  {
    22512326                    const cmt_string& s = v[i];
    2252                     cerr << s << endl;
     2327                    cout << s << endl;
     2328                    //              cerr << s << endl;
    22532329                  }
    22542330              }
     
    22692345    if (error_info != "")
    22702346      {
    2271         cerr << error_info << endl;
     2347        CmtMessage::error (error_info);
     2348        //      cerr << error_info << endl;
    22722349      }
    22732350    else
    22742351      {
    2275         cerr << branches_info << endl;
     2352        cout << branches_info << endl;
     2353        //      cerr << branches_info << endl;
    22762354      }
    22772355  }
     
    22892367    if (error_info != "")
    22902368      {
    2291         cerr << error_info << endl;
     2369        CmtMessage::error (error_info);
     2370        //      cerr << error_info << endl;
    22922371      }
    22932372    else
    22942373      {
    2295         cerr << subpackages_info << endl;
     2374        cout << subpackages_info << endl;
     2375        //      cerr << subpackages_info << endl;
    22962376      }
    22972377  }
     
    23092389    if (error_info != "")
    23102390      {
    2311         cerr << error_info << endl;
     2391        CmtMessage::error (error_info);
     2392        //      cerr << error_info << endl;
    23122393      }
    23132394    else
    23142395      {
    2315         cerr << subprojects_info << endl;
     2396        cout << subprojects_info << endl;
     2397        //      cerr << subprojects_info << endl;
    23162398      }
    23172399  }
     
    23322414    if (CmtSystem::getenv ("CVSROOT") == "")
    23332415      {
    2334         cerr << "# Please set CVSROOT first !" << endl;
     2416        CmtMessage::error ("Please set CVSROOT first !");
     2417        //      cerr << "# Please set CVSROOT first !" << endl;
    23352418        return;
    23362419      }
  • CMT/HEAD/source/cmt_error.cxx

    r363 r459  
    88#include "cmt_error.h"
    99#include "cmt_vector.h"
     10#include "cmt_log.h"
    1011
    11 class Error
     12class TheError
    1213{
    1314public:
    14   static Error& instance ();
     15  static TheError& instance ();
    1516
    16   Error ()
     17  TheError ()
    1718  {
    1819    error_names.add() = "ok";
     
    4041  }
    4142
    42   ~Error ()
     43  ~TheError ()
    4344  {
    4445  }
     
    8889
    8990//---------------------------------------------------------------
    90 Error& Error::instance ()
     91TheError& TheError::instance ()
    9192{
    92   static Error e;
     93  static TheError e;
    9394 
    9495  return (e);
     
    9899void CmtError::clear ()
    99100{
    100   Error& e = Error::instance ();
     101  TheError& e = TheError::instance ();
    101102
    102103  e.clear ();
     
    106107bool CmtError::has_pending_error ()
    107108{
    108   Error& e = Error::instance ();
     109  TheError& e = TheError::instance ();
    109110
    110111  if (e.get_code () == ok) return (false);
     
    115116CmtError::code CmtError::get_last_error_code ()
    116117{
    117   Error& e = Error::instance ();
     118  TheError& e = TheError::instance ();
    118119
    119120  return (e.get_code ());
     
    123124int CmtError::get_last_execution_error ()
    124125{
    125   Error& e = Error::instance ();
     126  TheError& e = TheError::instance ();
    126127
    127128  return (e.get_last_execution_error ());
     
    131132const cmt_string& CmtError::get_error_name (code error)
    132133{
    133   Error& e = Error::instance ();
     134  TheError& e = TheError::instance ();
    134135
    135136  return (e.get_name (error));
     
    139140void CmtError::set (code error, const cmt_string& text, const int execution_error)
    140141{
    141   Error& e = Error::instance ();
     142  TheError& e = TheError::instance ();
    142143
    143144  e.set (error, text, execution_error);
     
    147148cmt_string CmtError::get_last_error ()
    148149{
    149   Error& e = Error::instance ();
     150  TheError& e = TheError::instance ();
    150151
    151152  cmt_string result;
     
    161162void CmtError::print ()
    162163{
    163   Error& e = Error::instance ();
     164  /*
     165  TheError& e = TheError::instance ();
    164166
    165167  cerr << "CMT> Error: " << get_error_name (e.get_code ()) << " : " << e.get_text () << endl;
     168  */
     169  CmtMessage::error (get_last_error ());
    166170}
    167171
  • CMT/HEAD/source/cmt_fragment.cxx

    r400 r459  
    1515#include "cmt_system.h"
    1616#include "cmt_database.h"
     17#include "cmt_log.h"
    1718
    1819/*----------------------------------------------------------*/
     
    137138  if (fragment == 0)
    138139    {
    139       cerr << "Fragment " << name << " not found" << endl;
     140      CmtMessage::info ("Fragment " + name + " not found");
     141      //      cerr << "Fragment " << name << " not found" << endl;
    140142    }
    141143  else
     
    11101112  if (!result)
    11111113    {
    1112       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1114      CmtMessage::info ("Fragment " + _name + " not found");
     1115      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    11131116      _fragment = 0;
    11141117    }
     
    11301133  if (!result)
    11311134    {
    1132       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1135      CmtMessage::info ("Fragment " + _name + " not found");
     1136      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    11331137      _fragment = 0;
    11341138    }
     
    11501154  if (!result)
    11511155    {
    1152       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1156      CmtMessage::info ("Fragment " + _name + " not found");
     1157      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    11531158      _fragment = 0;
    11541159    }
     
    11701175  if (!result)
    11711176    {
    1172       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1177      CmtMessage::info ("Fragment " + _name + " not found");
     1178      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    11731179      _fragment = 0;
    11741180    }
     
    11931199  if (!result)
    11941200    {
    1195       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1201      CmtMessage::info ("Fragment " + _name + " not found");
     1202      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    11961203      _fragment = 0;
    11971204    }
     
    12131220  if (!result)
    12141221    {
    1215       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1222      CmtMessage::info ("Fragment " + _name + " not found");
     1223      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    12161224      _fragment = 0;
    12171225    }
     
    12331241  if (!result)
    12341242    {
    1235       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1243      CmtMessage::info ("Fragment " + _name + " not found");
     1244      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    12361245      _fragment = 0;
    12371246    }
     
    12551264  if (!result)
    12561265    {
    1257       cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1266      CmtMessage::info ("Fragment " + _name + " not found");
     1267      //      cerr << "#CMT> Fragment " << _name << " not found" << endl;
    12581268      _fragment = 0;
    12591269    }
     
    12721282      if (_fragment == 0)
    12731283        {
    1274           cerr << "#CMT> Fragment " << _name << " not found" << endl;
     1284          CmtMessage::info ("Fragment " + _name + " not found");
     1285          //          cerr << "#CMT> Fragment " << _name << " not found" << endl;
    12751286        }
    12761287    }
  • CMT/HEAD/source/cmt_generator.cxx

    r428 r459  
    1717
    1818#include "cmt_generators.h"
     19#include "cmt_log.h"
    1920
    2021//------------------------------------------------------------------------
     
    736737  else
    737738    {
    738       cerr << "#CMT> build constituent_makefile : wrong arguments" << endl;
     739      CmtMessage::error ("build constituent_makefile : wrong arguments");
     740      //      cerr << "#CMT> build constituent_makefile : wrong arguments" << endl;
    739741      return;
    740742    }
  • CMT/HEAD/source/cmt_generators.cxx

    r453 r459  
    107107    {
    108108      file_not_found = true;
    109       cerr << "#CMT> Warning: Source file " << file << " not found" << endl;
     109      CmtMessage::warning ("Source file " + file + " not found");
     110      //      cerr << "#CMT> Warning: Source file " << file << " not found" << endl;
    110111    }
    111112
     
    185186          can_build = false;
    186187          obj  = "";
    187           cerr << "#CMT> Warning: Source file " << name << " cannot be rebuilt" << endl;
     188          CmtMessage::warning ("Source file " + name + " cannot be rebuilt");
     189          //      cerr << "#CMT> Warning: Source file " << name << " cannot be rebuilt" << endl;
    188190        }
    189191      else
     
    236238  else
    237239    {
    238       cerr << "#CMT> Warning: file " << m_FULLNAME << " not found" << endl;
     240      CmtMessage::warning ("file " + m_FULLNAME + " not found");
     241      //      cerr << "#CMT> Warning: file " << m_FULLNAME << " not found" << endl;
    239242    }
    240243}
     
    430433  need_prototypes = constituent.need_prototypes;
    431434
    432   cout << m_TITLE << " " << m_CONSTITUENT << endl;
     435  //  cout << m_TITLE << " " << m_CONSTITUENT << endl;
     436  CmtMessage::info (m_TITLE + " " + m_CONSTITUENT);
    433437
    434438  lib  = "$(";
     
    881885  int i;
    882886
    883   cout << m_TITLE << " " << m_CONSTITUENT << endl;
     887  //  cout << m_TITLE << " " << m_CONSTITUENT << endl;
     888  CmtMessage::info (m_TITLE + " " + m_CONSTITUENT);
    884889
    885890  //
     
    10681073      if (!CmtSystem::test_file (file_name) && !CmtSystem::test_directory (file_name))
    10691074        {
    1070           cerr << "#CMT> Warning: Source file " << file_name << " not found" << endl;
     1075          CmtMessage::warning ("Source file " + file_name + " not found");
     1076          //          cerr << "#CMT> Warning: Source file " << file_name << " not found" << endl;
    10711077        }
    10721078
     
    11171123  if (!CmtSystem::test_file (file) && !CmtSystem::test_directory (file))
    11181124    {
    1119       cerr << "#CMT> Warning: Source file " << file << " not found" << endl;
     1125      CmtMessage::warning ("Source file " + file + " not found");
     1126      //      cerr << "#CMT> Warning: Source file " << file << " not found" << endl;
    11201127    }
    11211128
     
    14801487              if (file != NULL)
    14811488                {
     1489                  CmtMessage::warning ("\n"
     1490                                       "# A Makefile already exists "
     1491                                       "but it does not provide\n"
     1492                                       "# the recommended features "
     1493                                       "for a full benefit of CMT\n"
     1494                                       "#\n"
     1495                                       "# CMT is now building "
     1496                                       "a new 'Makefile.cmt' which you can use\n"
     1497                                       "# to upgrade your current one.");
     1498                  /*
    14821499                  cerr << "# " << endl;
    14831500                  cerr << "#CMT> Warning: " << endl;
     
    14911508                  cerr << "# to upgrade your current one." << endl;
    14921509                  cerr << "# " << endl;
    1493 
     1510                  */
    14941511                  s.write (file);
    14951512                  fclose (file);
     
    28722889  if (f == 0)
    28732890    {
    2874       cerr << "Cannot open " << m_output_file_name << " for write" << endl;
     2891      CmtMessage::error ("Cannot open " + m_output_file_name + " for write");
     2892      //      cerr << "Cannot open " << m_output_file_name << " for write" << endl;
    28752893    }
    28762894  else
     
    30073025      if (!CmtSystem::mkdir (stamp_output))
    30083026        {
    3009           cerr << "Cannot create the binary output directory for this constituent" << endl;
     3027          CmtMessage::error ("Cannot create the binary output directory for this constituent " + stamp_output);
     3028          //      cerr << "Cannot create the binary output directory for this constituent" << endl;
    30103029        }
    30113030
  • CMT/HEAD/source/cmt_install_area.cxx

    r400 r459  
    1313#include "cmt_cmtpath_pattern.h"
    1414#include "cmt_project.h"
     15#include "cmt_log.h"
    1516
    1617CmtInstallAreaMgr& CmtInstallAreaMgr::instance ()
     
    8687  if (installarea == "") return;
    8788
     89  CmtMessage::warning ("Doing cleanup in the installation area " + installarea);
     90  /*
    8891  if (!Cmt::get_quiet ())
    8992    {
    9093      cerr << "#CMT> Warning: Doing cleanup in the installation area " << installarea << endl;
    9194    }
     95  */
    9296
    9397  Symbol* macro = Symbol::find ("cmt_installarea_paths");
     
    167171              // and the reference file
    168172
     173              CmtMessage::info ("Removing obsolete installed file [" + ref + "]"
     174                                "  (and " + ref_file + ")");
     175              /*
    169176              if (!Cmt::get_quiet ())
    170177                {
     
    172179                  cerr << "  (and " << ref_file << ")" << endl;
    173180                }
     181              */
    174182
    175183              CmtSystem::remove_file (ref);
  • CMT/HEAD/source/cmt_lock.cxx

    r429 r459  
    1010#include "cmt_error.h"
    1111#include "cmt_symbol.h"
     12#include "cmt_log.h"
    1213
    1314//----------------------------------------------------------
     
    7374    }
    7475
    75   cerr << "Package now locked" << endl;
     76  CmtMessage::info ("Package now locked");
     77  //  cerr << "Package now locked" << endl;
    7678
    7779  return (locked_by_user);
     
    9193      return (s);
    9294    case not_locked:
    93       cerr << "Package not locked" << endl;
     95      CmtMessage::info ("Package not locked");
     96      //      cerr << "Package not locked" << endl;
    9497      return (s);
    9598    }
     
    148151    }
    149152
    150   cerr << "Package now unlocked" << endl;
     153  CmtMessage::info ("Package now unlocked");
     154  //  cerr << "Package now unlocked" << endl;
    151155
    152156  return (not_locked);
  • CMT/HEAD/source/cmt_log.h

    r11 r459  
    4040#define Log static CmtLog log_instance
    4141#define log_endl CmtLog::end ()
    42 #define log      if (Cmt::get_debug ()) log_instance << "#CMT> (" << __FILE__ << "-" << __LINE__ << ") "
     42#define log      if (Cmt::get_debug ()) log_instance << CmtMessage::prefix () + " (" << __FILE__ << ":" << __LINE__ << ") "
     43//#define log      if (Cmt::get_debug ()) log_instance << "#CMT> (" << __FILE__ << "-" << __LINE__ << ") "
    4344#define log_cont if (Cmt::get_debug ()) log_instance
    4445
     46
     47enum CmtMsgLevel
     48  {
     49    Nil = 0,
     50    Debug,
     51    Info,
     52    Warning,
     53    Error,
     54    Fatal
     55  };
     56
     57class CmtMessage
     58{
     59public:
     60  static cmt_string& prefix ();
     61  static void set_prefix (const cmt_string& prefix);
     62  static CmtMsgLevel& level ();
     63  static void set_level (const CmtMsgLevel& level);
     64  static bool active (const CmtMsgLevel& level);
     65  static void info (const cmt_string& message);
     66  static void warning (const cmt_string& message);
     67  static void error (const cmt_string& message);
     68  static void fatal (const cmt_string& message);
     69
     70private:
     71  CmtMessage ();
     72  static CmtMessage& instance ();
     73  cmt_string m_prefix;
     74  CmtMsgLevel m_level;
     75};
     76
     77/**----------------------------------------------------------
     78   The CmtMessage default constructor
     79   Here are primarily constructed all default definitions
     80*/
     81inline CmtMessage::CmtMessage ()
     82  : m_prefix ("#CMT--->"), m_level (Info)
     83{ }
     84
     85/**----------------------------------------------------------
     86   The CmtMessage singleton
     87*/
     88inline CmtMessage& CmtMessage::instance ()
     89{
     90  static CmtMessage me;
     91  return me;
     92}
     93
     94inline cmt_string& CmtMessage::prefix ()
     95{
     96  return instance ().m_prefix;
     97}
     98
     99inline void CmtMessage::set_prefix (const cmt_string& prefix)
     100{
     101  instance ().m_prefix = prefix;
     102}
     103
     104inline CmtMsgLevel& CmtMessage::level ()
     105{
     106  return instance ().m_level;
     107}
     108
     109inline void CmtMessage::set_level (const CmtMsgLevel& level)
     110{
     111  instance ().m_level = level;
     112}
     113
     114inline bool CmtMessage::active (const CmtMsgLevel& lvl)
     115{
     116  return level () <= lvl;
     117}
     118
     119inline void CmtMessage::info (const cmt_string& message)
     120{
     121  if (active (Info))
     122    cerr << prefix () << " Info: " << message << endl;
     123}
     124
     125inline void CmtMessage::warning (const cmt_string& message)
     126{
     127  if (active (Warning))
     128    cerr << prefix () << " Warning: " << message << endl;
     129}
     130
     131inline void CmtMessage::error (const cmt_string& message)
     132{
     133  if (active (Error))
     134    cerr << prefix () << " Error: " << message << endl;
     135}
     136
     137inline void CmtMessage::fatal (const cmt_string& message)
     138{
     139  if (active (Fatal))
     140    cerr << prefix () << " Fatal: " << message << endl;
     141}
    45142#endif
  • CMT/HEAD/source/cmt_model.cxx

    r400 r459  
    88#include "cmt_fragment.h"
    99#include "cmt_symbol.h"
     10#include "cmt_log.h"
    1011
    1112/**
     
    199200      if (it._pos != pos)
    200201        {
    201           cerr << "Syntax error: no element name" << endl;
     202          CmtMessage::error ("syntax: no element name");
     203          //      cerr << "Syntax error: no element name" << endl;
    202204          break;
    203205        }
     
    341343          if (it._pos != pos)
    342344            {
    343               cerr << "Syntax error : no attribute before closing the element [" << text.substr (pos) << "]" << endl;
     345              CmtMessage::error ("syntax: no attribute before closing the element [" + text.substr (pos) + "]");
     346              //              cerr << "Syntax error : no attribute before closing the element [" << text.substr (pos) << "]" << endl;
    344347              break;
    345348            }
  • CMT/HEAD/source/cmt_parser.cxx

    r457 r459  
    515515  Me.clear ();
    516516
     517  log << "configure_cmt_message" << log_endl;
     518  //configure_cmt_message ();
     519  configure_cmt_message (ap);
     520
    517521  log << "configure_default_path" << log_endl;
    518522  configure_default_path ();
     
    873877            {
    874878              Me.m_current_version = "v*";
    875               cerr << "#CMT> Warning: "
    876                    << "Could not read `" << version_file << "'."
    877                    << " Default version " << Me.m_current_version << endl;
     879              CmtMessage::warning ("Could not read `" + version_file + "'."
     880                                   " Default version `" + Me.m_current_version + "'");
    878881            }
    879882
     
    943946              if (structuring_style == with_version_directory)
    944947                {
    945                   cerr << "#CMT> Warning: `"
    946                        << up_branch << "' is not correct version syntax."
    947                     " Assuming it is package name" << endl;
     948                  CmtMessage::warning ("`" + up_branch + "' is not correct version syntax."
     949                                       " Assuming it is package name");
    948950                }
    949951              // No version descriptor
     
    952954              Me.m_current_package = up_branch;
    953955              Me.m_current_version = "v*";
    954               cerr << "#CMT> Warning: "
    955                    << "Structuring style used `without_version_directory', `"
    956                    << version_file << "' missing."
    957                    << " Default version `" << Me.m_current_version << "'" << endl;
     956              CmtMessage::warning ("Structuring style used `without_version_directory'"
     957                                   ", `" + version_file + "' missing."
     958                                   " Default version `" + Me.m_current_version + "'");
    958959              CmtSystem::dirname (up_dir, Me.m_current_path);
    959960             
     
    979980void Cmt::configure_current_structuring_style (const ArgParser& ap)
    980981{
    981   for (int i = ap.argc - 1; i >= 0; i--)
    982     {
    983       const cmt_string& arg = ap.argv[i];
    984       if (arg == "-without_version_directory")
     982  cmt_string s;
     983  s = CmtSystem::getenv ("CMTSTRUCTURINGSTYLE");
     984  if (s == "without_version_directory")
     985    {
     986      Me.m_current_structuring_style = without_version_directory;
     987    }
     988  else if (s == "with_version_directory")
     989    {
     990      Me.m_current_structuring_style = with_version_directory;
     991    }
     992
     993  CmtSystem::cmt_string_vector flags;
     994  Cmt::get_cmt_flags (flags);
     995  for (int i = 0; i < flags.size (); i++)
     996    {
     997      const cmt_string& flag = flags[i];
     998      if (flag == "-without_version_directory")
    985999        {
    9861000          Me.m_current_structuring_style = without_version_directory;
    987           return;
    9881001        }
    989       else if (arg == "-with_version_directory")
     1002      else if (flag == "-with_version_directory")
    9901003        {
    9911004          Me.m_current_structuring_style = with_version_directory;
    992           return;
     1005        }
     1006    }
     1007
     1008  for (int i = 1; i < ap.argc; i++)
     1009    {
     1010      const cmt_string& arg = ap.argv[i];
     1011      if (arg[0] != '-') break;
     1012      if (arg == "-without_v" ||
     1013          arg == "-without_ve" ||
     1014          arg == "-without_ver" ||
     1015          arg == "-without_vers" ||
     1016          arg == "-without_versi" ||
     1017          arg == "-without_versio" ||
     1018          arg == "-without_version" ||
     1019          arg == "-without_version_" ||
     1020          arg == "-without_version_d" ||
     1021          arg == "-without_version_di" ||
     1022          arg == "-without_version_dir" ||
     1023          arg == "-without_version_dire" ||
     1024          arg == "-without_version_direc" ||
     1025          arg == "-without_version_direct" ||
     1026          arg == "-without_version_directo" ||
     1027          arg == "-without_version_director" ||
     1028          arg == "-without_version_directory")
     1029        {
     1030          Me.m_current_structuring_style = without_version_directory;
     1031          //      if (!CmtSystem::putenv ("CMTSTRUCTURINGSTYLE", "without_version_directory"))
     1032          //        CmtMessage::error ("Cannot set `CMTSTRUCTURINGSTYLE' to"
     1033          //                           " `without_version_directory' in the environment");
     1034          if (!Cmt::add_cmt_flag ("-without_version_directory"))
     1035            CmtMessage::error ("Cannot add flag `-without_version_directory'");
    9931036        }
    994     }
    995 
    996   cmt_string s;
    997 
    998   s = CmtSystem::getenv ("CMTSTRUCTURINGSTYLE");
    999   if (s == "without_version_directory")
    1000     {
    1001       Me.m_current_structuring_style = without_version_directory;
    1002     }
    1003   else if (s == "with_version_directory")
    1004     {
    1005       Me.m_current_structuring_style = with_version_directory;
    1006     }
     1037      else if (arg == "-with_v" ||
     1038               arg == "-with_ve" ||
     1039               arg == "-with_ver" ||
     1040               arg == "-with_vers" ||
     1041               arg == "-with_versi" ||
     1042               arg == "-with_versio" ||
     1043               arg == "-with_version" ||
     1044               arg == "-with_version_" ||
     1045               arg == "-with_version_d" ||
     1046               arg == "-with_version_di" ||
     1047               arg == "-with_version_dir" ||
     1048               arg == "-with_version_dire" ||
     1049               arg == "-with_version_direc" ||
     1050               arg == "-with_version_direct" ||
     1051               arg == "-with_version_directo" ||
     1052               arg == "-with_version_director" ||
     1053               arg == "-with_version_directory")
     1054        {
     1055          Me.m_current_structuring_style = with_version_directory;
     1056          //      if (!CmtSystem::putenv ("CMTSTRUCTURINGSTYLE", "with_version_directory"))
     1057          //        CmtMessage::error ("Cannot set `CMTSTRUCTURINGSTYLE' to"
     1058          //                           " `with_version_directory' in the environment");
     1059          if (!Cmt::add_cmt_flag ("-with_version_directory"))
     1060            CmtMessage::error ("Cannot add flag `-with_version_directory'");
     1061        }
     1062    }
    10071063}
    10081064
     
    12651321
    12661322//----------------------------------------------------------
     1323//void Cmt::configure_cmt_message ()
     1324void Cmt::configure_cmt_message (const ArgParser& ap)
     1325{
     1326  cmt_string s;
     1327
     1328  s = CmtSystem::getenv ("CMTMSGPREFIX");
     1329  if (s != "")
     1330    CmtMessage::set_prefix (s);
     1331
     1332  s = CmtSystem::getenv ("CMTFATAL");
     1333  if (s != "")
     1334    {
     1335      CmtMessage::set_level (Fatal);
     1336    }
     1337
     1338  s = CmtSystem::getenv ("CMTERROR");
     1339  if (s != "")
     1340    {
     1341      CmtMessage::set_level (Error);
     1342    }
     1343
     1344  s = CmtSystem::getenv ("CMTWARNING");
     1345  if (s != "")
     1346    {
     1347      CmtMessage::set_level (Warning);
     1348    }
     1349
     1350  s = CmtSystem::getenv ("CMTINFO");
     1351  if (s != "")
     1352    {
     1353      CmtMessage::set_level (Info);
     1354    }
     1355
     1356  s = CmtSystem::getenv ("CMTDEBUG");
     1357  if (s != "")
     1358    {
     1359      CmtMessage::set_level (Debug);
     1360    }
     1361
     1362  CmtSystem::cmt_string_vector flags;
     1363  Cmt::get_cmt_flags (flags);
     1364  for (int i = 0; i < flags.size (); i++)
     1365    {
     1366      const cmt_string& flag = flags[i];
     1367      if (flag == "-disable_warnings")
     1368        {
     1369          Me.m_disable_warnings = true;
     1370          if (CmtMessage::level () <= Warning)
     1371            CmtMessage::set_level (Error);
     1372        }
     1373      else if (flag == "-quiet")
     1374        {
     1375          Me.m_quiet = true;
     1376          if (CmtMessage::level () <= Error)
     1377            CmtMessage::set_level (Fatal);
     1378        }
     1379      else if (flag == "-warnings")
     1380        {
     1381          Me.m_warnings = true;
     1382          if (CmtMessage::level () != Warning)
     1383            CmtMessage::set_level (Warning);
     1384          //      if (CmtMessage::level () > Warning)
     1385        }
     1386    }
     1387
     1388  for (int i = 1; i < ap.argc; i++)
     1389    {
     1390      const cmt_string& arg = ap.argv[i];
     1391      if (arg[0] != '-') break;
     1392      if (arg == "-d" ||
     1393          arg == "-di" ||
     1394          arg == "-dis" ||
     1395          arg == "-disa" ||
     1396          arg == "-disab" ||
     1397          arg == "-disabl" ||
     1398          arg == "-disable" ||
     1399          arg == "-disable_" ||
     1400          arg == "-disable_w" ||
     1401          arg == "-disable_wa" ||
     1402          arg == "-disable_war" ||
     1403          arg == "-disable_warn" ||
     1404          arg == "-disable_warni" ||
     1405          arg == "-disable_warnin" ||
     1406          arg == "-disable_warning" ||
     1407          arg == "-disable_warnings")
     1408        {
     1409          Me.m_disable_warnings = true;
     1410          if (CmtMessage::level () <= Warning)
     1411            {
     1412              CmtMessage::set_level (Error);
     1413              //              if (!CmtSystem::putenv ("CMTERROR", "1"))
     1414              //                CmtMessage::error ("Cannot set `CMTERROR' in the environment");
     1415            }
     1416          if (!Cmt::add_cmt_flag ("-disable_warnings"))
     1417            CmtMessage::error ("Cannot add flag `-disable_warnings'");
     1418        }
     1419      else if (arg == "-q" ||
     1420               arg == "-qu" ||
     1421               arg == "-qui" ||
     1422               arg == "-quie" ||
     1423               arg == "-quiet")
     1424        {
     1425          Me.m_quiet = true;
     1426          if (CmtMessage::level () <= Error)
     1427            {
     1428              CmtMessage::set_level (Fatal);
     1429              //              if (!CmtSystem::putenv ("CMTFATAL", "1"))
     1430              //                CmtMessage::error ("Cannot set `CMTFATAL' in the environment");
     1431            }
     1432          if (!Cmt::add_cmt_flag ("-quiet"))
     1433            CmtMessage::error ("Cannot add flag `-quiet'");
     1434        }
     1435      else if (arg == "-warn" ||
     1436               arg == "-warni" ||
     1437               arg == "-warnin" ||
     1438               arg == "-warning" ||
     1439               arg == "-warnings")
     1440        {
     1441          Me.m_warnings = true;
     1442          //      if (CmtMessage::level () > Warning)
     1443          if (CmtMessage::level () != Warning)
     1444            {
     1445              CmtMessage::set_level (Warning);
     1446              //              if (!CmtSystem::putenv ("CMTWARNING", "1"))
     1447              //                CmtMessage::error ("Cannot set `CMTWARNING' in the environment");
     1448            }
     1449          if (!Cmt::add_cmt_flag ("-warnings"))
     1450            CmtMessage::error ("Cannot add flag `-warnings'");
     1451        }
     1452    }
     1453}
     1454
     1455//----------------------------------------------------------
    12671456//
    12681457//   Actions
     
    12851474  if (ap.arguments.size () < 1)
    12861475    {
    1287       cerr << "#CMT> cmt awk <file> <pattern>" << endl;
     1476      CmtMessage::error ("cmt awk <file> <pattern>");
     1477      //      cerr << "#CMT> cmt awk <file> <pattern>" << endl;
    12881478      return;
    12891479    }
     
    14581648          if (!use->located ())
    14591649            {
     1650              CmtMessage::warning ("package " + use->get_package_name ()
     1651                                   + " " + use->version + " " + use->path
     1652                                   + " not found");
     1653              /*
    14601654              if (!Me.m_quiet)
    14611655                {
     
    14651659                    endl;
    14661660                }
     1661              */
    14671662            }
    14681663          else
     
    16231818          if (s.find ("cmt_standalone") != cmt_string::npos)
    16241819            {
    1625               cerr << "#CMT> Currently not in a CMT package" << endl;
     1820              CmtMessage::warning ("Currently not in a CMT package");
     1821              //              cerr << "#CMT> Currently not in a CMT package" << endl;
    16261822            }
    16271823          else
    16281824            {
     1825              char num[32]; sprintf (num, "%d/%d", i+1, uses.size ());
     1826              CmtMessage::error ("Cannot move to the package in " + s
     1827                                 + " (" + num + ")");
     1828              /*
    16291829              cerr << "#CMT> Cannot move to the package in " << s << " (" << i+1 << "/"
    16301830                   << uses.size () << ")"<< endl;
     1831              */
    16311832            }
    16321833
     
    16381839      if (CmtLock::check () == CmtLock::locked_by_another_user)
    16391840        {
     1841          char num[32]; sprintf (num, "%d/%d", i+1, uses.size ());
     1842          CmtMessage::warning ("Ignore locked package in " + s
     1843                               + " (" + num + ")");
     1844          /*
    16401845          cerr << "#CMT> Ignore locked package in " << s << " (" << i+1 << "/"
    16411846               << uses.size () << ")" << endl;
     1847          */
    16421848          continue;
    16431849        }
     
    16861892
    16871893
     1894  if (CmtMessage::active (Error))
     1895    {
    16881896      cout << "#--------------------------------------------------------------" << endl;
    16891897      cout << "# Now trying [" << cmd << "] in " << s << " (" << i+1 << "/" << uses.size ()
    16901898           << ")" << endl;
    16911899      cout << "#--------------------------------------------------------------" << endl;
     1900    }
    16921901
    16931902      if (is_cmt)
     
    20422251      if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag))
    20432252        {
    2044           cerr << "#CMT> The tag " << t << " is not used in any tag expression. Please check spelling" << endl;
     2253          CmtMessage::warning ("The tag " + t + " is not used in any tag expression. Please check spelling");
     2254          //      cerr << "#CMT> The tag " << t << " is not used in any tag expression. Please check spelling" << endl;
    20452255        }
    20462256    }
     
    20622272  if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag) && Cmt::get_warnings ())
    20632273    {
    2064       cerr << "#CMT> The CMTSITE value " << env << " is not used in any tag expression. Please check spelling" << endl;
     2274      CmtMessage::warning ("The CMTSITE value " + env + " is not used in any tag expression. Please check spelling");
     2275      //      cerr << "#CMT> The CMTSITE value " << env << " is not used in any tag expression. Please check spelling" << endl;
    20652276    }
    20662277
     
    21602371      if (CmtSystem::test_file ("requirements"))
    21612372        {
     2373          if (CmtMessage::active (Error))
     2374            {
    21622375          cout << "------------------------------------------" << endl;
    21632376          cout << "Configuring environment for standalone package." << endl;
     
    21652378          cout << "System is " << Me.m_cmt_config << endl;
    21662379          cout << "------------------------------------------" << endl;
     2380            }
    21672381
    21682382          install_test_setup_scripts ();
     
    21982412  if (makes.size () > 0)
    21992413    {
    2200       cout << "Removing all previous make fragments from " << branch << endl;
     2414      if (CmtMessage::active (Info))
     2415        cout << "Removing all previous make fragments from " << branch << endl;
    22012416
    22022417      for (int i = 0; i < makes.size (); i++)
     
    22202435  if (makes.size () > 0)
    22212436    {
    2222       cout << "Removing all previous make fragments from "
    2223            << Me.m_cmt_config << endl;
     2437      if (CmtMessage::active (Info))
     2438        {
     2439          cout << "Removing all previous make fragments from "
     2440               << Me.m_cmt_config << endl;
     2441        }
    22242442
    22252443      for (int i = 0; i < makes.size (); i++)
     
    22532471  if (!reach_current_package ())
    22542472    {
    2255       cout << "Cannot read the requirements file" << endl;
     2473      CmtMessage::error ("Cannot read the requirements file");
     2474      //      cout << "Cannot read the requirements file" << endl;
    22562475      return;
    22572476    }
     
    22762495          if (!CmtSystem::mkdir (branch_name))
    22772496            {
    2278               cout << "Cannot create the " << branch_name <<" branch" << endl;
     2497              CmtMessage::error ("Cannot create the " + branch_name + " branch");
     2498              //              cout << "Cannot create the " << branch_name <<" branch" << endl;
    22792499            }
    22802500          else
    22812501            {
    2282               cout << "Installing the " << branch_name << " directory" << endl;
     2502              if (CmtMessage::active (Info))
     2503                cout << "Installing the " << branch_name << " directory" << endl;
    22832504            }
    22842505        }
    22852506      else
    22862507        {
    2287           cout << branch_name << " directory already installed" << endl;
     2508          if (CmtMessage::active (Info))
     2509            cout << branch_name << " directory already installed" << endl;
    22882510        }
    22892511    }
     
    23302552      if (CmtSystem::test_file ("requirements"))
    23312553        {
     2554          if (CmtMessage::active (Error))
     2555            {
    23322556          cout << "------------------------------------------" << endl;
    23332557          cout << "Configuring environment for standalone package." << endl;
     
    23352559          cout << "System is "   << Me.m_cmt_config << endl;
    23362560          cout << "------------------------------------------" << endl;
    2337 
     2561            }
    23382562          install_test_setup_scripts ();
    23392563          install_test_cleanup_scripts ();
     
    23792603  if (!reach_current_package ())
    23802604    {
    2381       cout << "Cannot read the requirements file" << endl;
     2605      CmtMessage::error ("Cannot read the requirements file");
     2606      //      cout << "Cannot read the requirements file" << endl;
    23822607      return;
    23832608    }
     
    24012626          if (!CmtSystem::mkdir (branch_name))
    24022627            {
    2403               cout << "Cannot create the " << branch_name <<" branch" << endl;
     2628              CmtMessage::error ("Cannot create the " + branch_name + " branch");
     2629              //              cout << "Cannot create the " << branch_name <<" branch" << endl;
    24042630            }
    24052631          else
    24062632            {
    2407               cout << "Installing the " << branch_name << " directory" << endl;
     2633              if (CmtMessage::active (Info))
     2634                cout << "Installing the " << branch_name << " directory" << endl;
    24082635            }
    24092636        }
    24102637      else
    24112638        {
    2412           cout << branch_name << " directory already installed" << endl;
     2639          if (CmtMessage::active (Info))
     2640            cout << branch_name << " directory already installed" << endl;
    24132641        }
    24142642    }
     
    24562684  // Now 'the_path' contains the complete path where the package will be created
    24572685
     2686  if (CmtMessage::active (Error))
     2687    {
    24582688  cout << "------------------------------------------" << endl;
    24592689  cout << "Configuring environment for package " << package <<
     
    24632693  cout << "System is " << Me.m_cmt_config << endl;
    24642694  cout << "------------------------------------------" << endl;
     2695    }
    24652696
    24662697  if (!CmtSystem::test_directory (the_path))
     
    24682699      if (!CmtSystem::mkdir (the_path))
    24692700        {
    2470           cout << "Cannot create the path directory" << endl;
     2701          CmtMessage::error ("Cannot create the path directory");
     2702          //          cout << "Cannot create the path directory" << endl;
    24712703          return;
    24722704        }
    24732705      else
    24742706        {
    2475           cout << "Installing the path directory" << endl;
     2707          if (CmtMessage::active (Info))
     2708            cout << "Installing the path directory" << endl;
    24762709        }
    24772710    }
     
    24832716      if (!CmtSystem::mkdir (package))
    24842717        {
    2485           cout << "Cannot create the package directory" << endl;
     2718          CmtMessage::error ("Cannot create the package directory");
     2719          //          cout << "Cannot create the package directory" << endl;
    24862720          return;
    24872721        }
    24882722      else
    24892723        {
    2490           cout << "Installing the package directory" << endl;
     2724          if (CmtMessage::active (Info))
     2725            cout << "Installing the package directory" << endl;
    24912726        }
    24922727    }
    24932728  else
    24942729    {
    2495       cout << "Package directory already installed" << endl;
     2730      if (CmtMessage::active (Info))
     2731        cout << "Package directory already installed" << endl;
    24962732    }
    24972733
     
    25282764          if (!CmtSystem::mkdir (version))
    25292765            {
    2530               cout << "Cannot create the version directory" << endl;
     2766              CmtMessage::error ("Cannot create the version directory");
     2767              //              cout << "Cannot create the version directory" << endl;
    25312768              return;
    25322769            }
    25332770          else
    25342771            {
    2535               cout << "Installing the version directory" << endl;
     2772              if (CmtMessage::active (Info))
     2773                cout << "Installing the version directory" << endl;
    25362774            }
    25372775        }
    25382776      else
    25392777        {
    2540           cout << "Version directory already installed" << endl;
     2778          if (CmtMessage::active (Info))
     2779            cout << "Version directory already installed" << endl;
    25412780        }
    25422781
     
    25452784  else
    25462785    {
    2547       cout << "Version directory will not be created due to structuring style" << endl;
     2786      if (CmtMessage::active (Info))
     2787        cout << "Version directory will not be created due to structuring style" << endl;
    25482788    }
    25492789
     
    25542794          if (!CmtSystem::mkdir ("cmt"))
    25552795            {
    2556               cout << "Cannot create the cmt directory" << endl;
     2796              CmtMessage::error ("Cannot create the cmt directory");
     2797//              cout << "Cannot create the cmt directory" << endl;
    25572798              return;
    25582799            }
     
    25682809                }
    25692810
    2570               cout << "Installing the cmt directory" << endl;
     2811              if (CmtMessage::active (Info))
     2812                cout << "Installing the cmt directory" << endl;
    25712813            }
    25722814        }
     
    25822824            }
    25832825         
    2584           cout << "Mgr directory already installed" << endl;
     2826          if (CmtMessage::active (Info))
     2827            cout << "Mgr directory already installed" << endl;
    25852828        }
    25862829    }
     
    25962839        }
    25972840
    2598       cout << "Cmt directory already installed" << endl;
     2841      if (CmtMessage::active (Info))
     2842        cout << "Cmt directory already installed" << endl;
    25992843    }
    26002844
     
    26032847      if (!CmtSystem::mkdir ("src"))
    26042848        {
    2605           cout << "Cannot create the src directory" << endl;
     2849          CmtMessage::error ("Cannot create the src directory");
     2850          //          cout << "Cannot create the src directory" << endl;
    26062851          return;
    26072852        }
    26082853      else
    26092854        {
    2610           cout << "Installing the src directory" << endl;
     2855          if (CmtMessage::active (Info))
     2856            cout << "Installing the src directory" << endl;
    26112857        }
    26122858    }
    26132859  else
    26142860    {
    2615       cout << "src directory already installed" << endl;
     2861      if (CmtMessage::active (Info))
     2862        cout << "src directory already installed" << endl;
    26162863    }
    26172864
     
    28013048      Symbol::expand (cmd);
    28023049
    2803       cerr << "Execute action " << ap.arguments[0] << " => " << cmd << endl;
     3050      CmtMessage::info ("Execute action " + ap.arguments[0] + " => " + cmd);
    28043051
    28053052      int status = CmtSystem::execute (cmd);
     
    28493096  if (!CmtSystem::test_file (input))
    28503097    {
    2851       cerr << "#CMT> File " << input << " not found" << endl;
     3098      CmtMessage::error ("File " + input + " not found");
     3099      //      cerr << "#CMT> File " << input << " not found" << endl;
    28523100      return;
    28533101    }
     
    28643112  if (file == NULL)
    28653113    {
    2866       cerr << "#CMT> Cannot write filtered file " << output << endl;
     3114      CmtMessage::error ("Cannot write filtered file " + output);
     3115      //      cerr << "#CMT> Cannot write filtered file " << output << endl;
    28673116    }
    28683117  else
     
    28963145  //(unsused) Use& use = Use::current();
    28973146
    2898   cerr << "try to lock package " << package << " in " << CmtSystem::pwd () << endl;
     3147  CmtMessage::info ("try to lock package " + package + " in " + CmtSystem::pwd ());
     3148  //  cerr << "try to lock package " << package << " in " << CmtSystem::pwd () << endl;
    28993149
    29003150  set_standard_macros ();
     
    29363186  CmtSystem::compress_path (the_path);
    29373187
     3188  if (CmtMessage::active (Info))
     3189    {
    29383190  cout << "------------------------------------------" << endl;
    29393191  cout << "Removing package " << package <<
     
    29433195  cout << "System is " << Me.m_cmt_config << endl;
    29443196  cout << "------------------------------------------" << endl;
     3197    }
    29453198
    29463199  the_path += CmtSystem::file_separator ();
     
    29493202  if (!CmtSystem::cd (the_path))
    29503203    {
    2951       cerr << "Path " << the_path << " not reachable" << endl;
     3204      CmtMessage::error ("Path " + the_path + " not reachable");
     3205      //      cerr << "Path " << the_path << " not reachable" << endl;
    29523206      return;
    29533207    }
     
    29573211      if (CmtSystem::remove_directory (version))
    29583212        {
    2959           cerr << "Version " << version << " has been removed from " << the_path << endl;
     3213          if (CmtMessage::active (Info))
     3214            cerr << "Version " << version << " has been removed from " << the_path << endl;
    29603215          CmtSystem::cmt_string_vector contents;
    29613216          CmtSystem::scan_dir (".", contents);
     
    29653220              if (CmtSystem::remove_directory (package))
    29663221                {
    2967                   cerr << "Package " << package << " has no more versions. Thus it has been removed."<< endl;
     3222                  if (CmtMessage::active (Info))
     3223                    cerr << "Package " << package << " has no more versions. Thus it has been removed."<< endl;
    29683224                }
    29693225            }
     
    29713227      else
    29723228        {
    2973           cerr << "Impossible to remove version " << version << " from " << the_path << endl;
     3229          CmtMessage::warning ("Impossible to remove version " + version + " from " + the_path);
     3230          //          cerr << "Impossible to remove version " << version << " from " << the_path << endl;
    29743231        }
    29753232    }
     
    29863243          if (!CmtSystem::remove_directory ("cmt"))
    29873244            {
     3245              if (CmtMessage::active (Info))
     3246                {
    29883247              cerr << "Unstructured version " << version
    29893248                   << " has been removed from " << the_path << endl;
     3249                }
    29903250            }
    29913251          else
    29923252            {
    2993               cerr << "Impossible to remove unstructured version " << version
    2994                    << " from " << the_path << endl;
     3253              CmtMessage::warning ("Impossible to remove unstructured version " + version + " from " + the_path);
     3254              //              cerr << "Impossible to remove unstructured version " << version
     3255              //                   << " from " << the_path << endl;
    29953256            }
    29963257        }
    29973258      else
    29983259        {
    2999           cerr << "Version " << version << " not found" << endl;
     3260          CmtMessage::warning ("Version " + version + " not found");
     3261          //          cerr << "Version " << version << " not found" << endl;
    30003262        }
    30013263    }
    30023264  else
    30033265    {
    3004       cerr << "Version " << version << " not found" << endl;
     3266      CmtMessage::warning ("Version " + version + " not found");
     3267      //      cerr << "Version " << version << " not found" << endl;
    30053268    }
    30063269}
     
    30513314      if (!use->located ())
    30523315        {
     3316          CmtMessage::warning ("package " + use->get_package_name ()
     3317                               + " " + use->version + " " + use->path
     3318                               + " not found");
     3319              /*
    30533320          if (!Me.m_quiet)
    30543321            {
     
    30583325                endl;
    30593326            }
     3327              */
    30603328        }
    30613329      else
     
    31853453                  if (status != 2) CmtError::set (CmtError::execution_error, s);
    31863454
    3187                   cerr << "#CMT> Cannot remove the symbolic link " << s << endl;
     3455                  CmtMessage::warning ("Cannot remove the symbolic link " + s);
     3456                  //                  cerr << "#CMT> Cannot remove the symbolic link " << s << endl;
    31883457
    31893458                  break;
     
    32183487void Cmt::do_run_sequence (const ArgParser& ap)
    32193488{
    3220   if (ap.arguments.size () == 0) cerr << "#CMT> run_sequence: no sequence specified" << endl;
     3489  if (ap.arguments.size () == 0)
     3490    CmtMessage::warning ("run_sequence: no sequence specified");
     3491  //cerr << "#CMT> run_sequence: no sequence specified" << endl;
    32213492
    32223493  SequenceRunner runner;
    32233494
    3224   cerr << "# cmt run_sequence: sequence " << ap.arguments[0] << endl;
     3495  if (CmtMessage::active (Info))
     3496    cerr << "# cmt run_sequence: sequence " << ap.arguments[0] << endl;
    32253497
    32263498  runner.run (ap.arguments[0]);
     
    32303502void Cmt::do_set_version (const ArgParser& ap)
    32313503{
    3232   if (ap.arguments.size () == 0) cerr << "#CMT> set version: no version specified" << endl;
     3504  if (ap.arguments.size () == 0)
     3505    CmtMessage::warning ("set version: no version specified");
     3506  //cerr << "#CMT> set version: no version specified" << endl;
    32333507
    32343508  const cmt_string& version = ap.arguments[0];
     
    32383512  if (!CmtSystem::is_version_directory (version, v, r, p))
    32393513    {
    3240       cerr << "#CMT> set version " << version << " is not a correct version syntax" << endl;
     3514      CmtMessage::error ("set version " + version + " is not a correct version syntax");
     3515      //      cerr << "#CMT> set version " << version << " is not a correct version syntax" << endl;
    32413516      return;
    32423517    }
     
    32443519  if ((v == -1) || (r == -1) || (p == -1))
    32453520    {
    3246       cerr << "#CMT> set version " << version
    3247            << " You cannot use wild card to set a version" << endl;
     3521      CmtMessage::error ("set version " + version
     3522                         + " You cannot use wild card to set a version");
     3523      //      cerr << "#CMT> set version " << version
     3524      //           << " You cannot use wild card to set a version" << endl;
    32483525      return;
    32493526    }
     
    32583535  if (branch != "cmt")
    32593536    {
    3260       cerr << "#CMT> set version " << version << " must be applied in a cmt directory"
    3261            << endl;
     3537      CmtMessage::error ("set version " + version
     3538                         + " must be applied in a cmt directory");
     3539      //      cerr << "#CMT> set version " << version << " must be applied in a cmt directory"
     3540      //           << endl;
    32623541      return;
    32633542    }
     
    32683547  if (branch == version)
    32693548    {
    3270       cerr << "#CMT> set version " << version << " is already available as a version directory"
    3271            << endl;
     3549      CmtMessage::warning ("set version " + version
     3550                           + " is already available as a version directory");
     3551      //      cerr << "#CMT> set version " << version << " is already available as a version directory"
     3552      //           << endl;
    32723553      return;
    32733554    }
    32743555
    3275   cerr << "Writing version file : " << version << endl;
     3556  CmtMessage::info ("Writing version file : " + version);
     3557  //  cerr << "Writing version file : " << version << endl;
    32763558
    32773559  version.write ("version.cmt");
     
    40124294  // (unused??) Use& use = Use::current();
    40134295
    4014   cerr << "try to unlock package " << package << " in " << CmtSystem::pwd () << endl;
     4296  CmtMessage::info ("try to unlock package " + package + " in " + CmtSystem::pwd ());
     4297  //  cerr << "try to unlock package " << package << " in " << CmtSystem::pwd () << endl;
    40154298
    40164299  set_standard_macros ();
     
    41514434{
    41524435  return (Me.m_all_sets_done);
     4436}
     4437
     4438//----------------------------------------------------------
     4439void Cmt::get_cmt_flags (CmtSystem::cmt_string_vector& flags)
     4440{
     4441  CmtSystem::split (CmtSystem::getenv ("CMTFLAGS"), " \t", flags);
     4442}
     4443
     4444//----------------------------------------------------------
     4445cmt_string Cmt::get_cmt_flags ()
     4446{
     4447  return CmtSystem::getenv ("CMTFLAGS");
     4448}
     4449
     4450//----------------------------------------------------------
     4451bool Cmt::set_cmt_flags (const cmt_string& cmtflags)
     4452{
     4453  return CmtSystem::putenv ("CMTFLAGS", cmtflags) ?
     4454    true :
     4455    (CmtMessage::error ("Cannot set `CMTFLAGS' to `" + cmtflags +
     4456                        "' in the environment"),
     4457     false) ;
     4458}
     4459
     4460//----------------------------------------------------------
     4461bool Cmt::add_cmt_flag (const cmt_string& flag)
     4462{
     4463  CmtSystem::cmt_string_vector flags;
     4464  get_cmt_flags (flags);
     4465  cmt_string cmtflags;
     4466  for (int i = 0; i < flags.size (); i++)
     4467    {
     4468      if (flags[i] == flag) continue;
     4469      if (cmtflags == "")
     4470        cmtflags = flags[i];
     4471      else
     4472        cmtflags += " " + flags[i];
     4473    }
     4474
     4475  if (cmtflags == "")
     4476    cmtflags = flag;
     4477  else
     4478    cmtflags += " " + flag;
     4479
     4480  return set_cmt_flags (cmtflags);
    41534481}
    41544482
     
    43114639#endif
    43124640
    4313   cerr << "Creating cleanup scripts." << endl;
     4641  if (CmtMessage::active (Error))
     4642    cerr << "Creating cleanup scripts." << endl;
    43144643
    43154644  cmt_string temp;
     
    43974726#endif
    43984727
    4399   cerr << "Creating setup scripts." << endl;
     4728  if (CmtMessage::active (Error))
     4729    cerr << "Creating setup scripts." << endl;
    44004730
    44014731  Use& current_use = Use::current ();
     
    45114841#endif
    45124842
    4513   cerr << "Creating cleanup scripts." << endl;
     4843  if (CmtMessage::active (Error))
     4844    cerr << "Creating cleanup scripts." << endl;
    45144845
    45154846  cmt_string temp;
     
    45904921      if (value != "")
    45914922        {
    4592           cerr << "Creating native_version file." << endl;   
     4923          if (CmtMessage::active (Info))
     4924            cerr << "Creating native_version file." << endl;   
    45934925
    45944926          FILE* f = fopen ("new.native_version.cmt", "wb");
     
    46184950#endif
    46194951
    4620   cerr << "Creating setup scripts." << endl;
     4952  if (CmtMessage::active (Error))
     4953    cerr << "Creating setup scripts." << endl;
    46214954
    46224955  Use& current_use = Use::current ();
     
    48045137  if (!CmtSystem::cd (Me.m_current_path))
    48055138    {
     5139      CmtMessage::error ("Cannot reach the directory " + Me.m_current_path);
     5140      /*
    48065141      if (!Me.m_quiet)
    48075142        {
     
    48095144            Me.m_current_path << endl;
    48105145        }
     5146      */
    48115147      CmtError::set (CmtError::package_not_found, "Load> Cannot reach the path directory");
    48125148      CmtSystem::cd (Me.m_current_dir);
     
    48205156  if (!CmtSystem::cd (Me.m_current_package))
    48215157    {
     5158      CmtMessage::error ("Cannot reach the package " + Me.m_current_package);
     5159      /*
    48225160      if (!Me.m_quiet)
    48235161        {
     
    48255163            Me.m_current_package << endl;
    48265164        }
     5165      */
    48275166      CmtError::set (CmtError::package_not_found, "Load> Cannot reach the package directory");
    48285167      CmtSystem::cd (Me.m_current_dir);
     
    48405179      if (!CmtSystem::test_directory ("cmt"))
    48415180        {
     5181          CmtMessage::error ("Cannot reach the version " + Me.m_current_version);
     5182          /*
    48425183          if (!Me.m_quiet)
    48435184            {
     
    48455186                Me.m_current_version << endl;
    48465187            }
     5188          */
    48475189          CmtError::set (CmtError::package_not_found, "Load> Cannot reach the version directory");
    48485190          CmtSystem::cd (Me.m_current_dir);
     
    48795221      else
    48805222        {
     5223          CmtMessage::error ("Cannot reach the mgr branch");
     5224          /*
    48815225          if (!Me.m_quiet)
    48825226            {
    48835227              cerr << "#CMT> Cannot reach the mgr branch" << endl;
    48845228            }
     5229          */
    48855230
    48865231          CmtError::set (CmtError::package_not_found,
     
    50325377    }
    50335378
     5379  // save CMTFLAGS
     5380  cmt_string cmtflags (get_cmt_flags ());
     5381
    50345382  clear ();
    50355383
     
    50695417  if (Me.m_configure_error != "")
    50705418    {
    5071       if (!Me.m_quiet) cerr << "#CMT> Error: " << Me.m_configure_error << endl;
     5419      CmtMessage::error (Me.m_configure_error);
     5420      //      if (!Me.m_quiet) cerr << "#CMT> Error: " << Me.m_configure_error << endl;
    50725421      return (CmtError::execution_error);
    50735422    }
     
    56455994          break;
    56465995        case action_load :
    5647           cerr << "#CMT> action not implemented" << endl;
     5996          CmtMessage::error ("action not implemented");
     5997          //      cerr << "#CMT> action not implemented" << endl;
    56485998          break;
    56495999        case action_lock :
     
    58206170        }
    58216171    }
     6172
     6173  // restore CMTFLAGS
     6174  set_cmt_flags (cmtflags);
    58226175
    58236176  if (CmtError::has_pending_error ())
     
    63006653          else
    63016654            {
     6655              CmtMessage::error ("Cannot reach the mgr branch");
     6656              /*
    63026657              if (!Me.m_quiet)
    63036658                {
    63046659                  cerr << "#CMT> Cannot reach the mgr branch" << endl;
    63056660                }
     6661              */
    63066662             
    63076663              CmtError::set (CmtError::package_not_found,
  • CMT/HEAD/source/cmt_pattern.cxx

    r400 r459  
    1616#include "cmt_error.h"
    1717#include "cmt_syntax.h"
     18#include "cmt_log.h"
    1819
    1920
     
    915916            {
    916917              state = in_error;
     918              CmtMessage::warning ("bad syntax in apply_pattern " + name
     919                                   + " (missing '=' separator)"
     920                                   + ( (use != 0) ?
     921                                       " (from " + use->get_package_name () + ")":
     922                                       "" )
     923                                   );
     924              /*
    917925              if (!Cmt::get_quiet ())
    918926                {
     
    924932                  cerr << endl;
    925933                }
     934              */
    926935              break;
    927936            }
     
    990999          if (p->line.find (tsearch) == cmt_string::npos)
    9911000            {
     1001              CmtMessage::warning ("template <" + tname
     1002                                   + "> not expected in pattern " + name
     1003                                   + ( (use != 0) ?
     1004                                       " (from " + use->get_package_name () + ")":
     1005                                       "" )
     1006                                   );
     1007              /*
    9921008              if (!Cmt::get_quiet ())
    9931009                {
     
    9961012                  cerr << endl;
    9971013                }
     1014              */
    9981015            }
    9991016
  • CMT/HEAD/source/cmt_project.cxx

    r457 r459  
    1818#include "cmt_tag.h"
    1919#include "cmt_error.h"
     20#include "cmt_log.h"
    2021
    2122class ProjectReader : public Awk
     
    232233          if (r != p.get_release ())
    233234            {
     235              CmtMessage::error ("Project " + p.get_name ()
     236                                   + " requested with conflicting releases "
     237                                   + p.get_release () + " and " + r);
     238              /*
    234239              if (!Cmt::get_quiet ())
    235240                {
     
    237242                       << " requested with conflicting releases " << p.get_release () << " and " << r << endl;
    238243                }
     244              */
    239245              CmtError::set (CmtError::project_release_conflict, p.get_name ());
    240246            }
     
    420426              // The specified name is not in the path.
    421427             
     428              CmtMessage::warning ("none of specified project names "
     429                                   + specified_name + " from graph and "
     430                                   + project_name + " from project file match path.");
     431              /*
    422432              if (!Cmt::get_quiet ())
    423433                {
     
    428438                       << " from project file match path." << endl;
    429439                }
     440              */
    430441
    431442              name = specified_name;
     
    650661  cmt_string pwd = CmtSystem::pwd ();
    651662
     663  if (CmtMessage::active (Error))
     664    {
    652665  cerr << "------------------------------------------" << endl;
    653666  cerr << "Configuring environment for project " << name << " " << release << " (from " << pwd << ") ";
     
    661674  cerr << "CMT version " << Cmt::get_cmt_version () << "." << endl;
    662675  cerr << "------------------------------------------" << endl;
     676    }
    663677
    664678  if (path != "")
     
    666680      if (!CmtSystem::mkdir (path))
    667681        {
    668           cerr << "Cannot create the " << path << " directory" << endl;
     682          CmtMessage::error ("Cannot create the " + path + " directory");
     683          //          cerr << "Cannot create the " << path << " directory" << endl;
    669684          return (false);
    670685        }
     
    672687      if (!CmtSystem::cd (path))
    673688        {
    674           cerr << "Cannot access the " << path << " directory" << endl;
     689          CmtMessage::error ("Cannot access the " + path + " directory");
     690          //          cerr << "Cannot access the " << path << " directory" << endl;
    675691          return (false);
    676692        }
     
    679695  if (!CmtSystem::mkdir (name))
    680696    {
    681       cerr << "Cannot create the " << name << " directory" << endl;
     697      CmtMessage::error ("Cannot create the " + name + " directory");
     698      //      cerr << "Cannot create the " << name << " directory" << endl;
    682699      return (false);
    683700    }
     
    685702  if (!CmtSystem::cd (name))
    686703    {
    687       cerr << "Cannot access the " << name << " directory" << endl;
     704      CmtMessage::error ("Cannot access the " + name + " directory");
     705      //      cerr << "Cannot access the " << name << " directory" << endl;
    688706      return (false);
    689707    }
     
    693711      if (!CmtSystem::mkdir (release))
    694712        {
    695           cerr << "Cannot create the " << release << " directory" << endl;
     713          CmtMessage::error ("Cannot create the " + release + " directory");
     714          //      cerr << "Cannot create the " << release << " directory" << endl;
    696715          return (false);
    697716        }
     
    699718      if (!CmtSystem::cd (release))
    700719        {
    701           cerr << "Cannot access the " << release << " directory" << endl;
     720          CmtMessage::error ("Cannot access the " + release + " directory");
     721          //      cerr << "Cannot access the " << release << " directory" << endl;
    702722          return (false);
    703723        }
     
    708728      if (!CmtSystem::mkdir ("cmt"))
    709729        {
    710           cerr << "Cannot create the cmt directory" << endl;
     730          CmtMessage::error ("Cannot create the cmt directory");
     731          //          cerr << "Cannot create the cmt directory" << endl;
    711732          return (false);
    712733        }
    713734      else
    714735        {
    715           cerr << "Installing the cmt directory" << endl;
     736          if (CmtMessage::active (Info))
     737            cerr << "Installing the cmt directory" << endl;
    716738        }
    717739    }
     
    721743  if (!CmtSystem::test_file (get_project_file_name ()))
    722744    {
    723       cerr << "Creating a new project file" << endl;
     745      if (CmtMessage::active (Info))
     746        cerr << "Creating a new project file" << endl;
    724747
    725748      ofstream f (get_project_file_name ());
     
    732755      else
    733756        {
    734           cerr << "Cannot create the project file" << endl;
     757          CmtMessage::error ("Cannot create the project file");
     758          //          cerr << "Cannot create the project file" << endl;
    735759          return (false);
    736760        }
     
    746770      p.commit ();
    747771
    748       cerr << "project file already there" << endl;
     772      if (CmtMessage::active (Info))
     773        cerr << "project file already there" << endl;
    749774    }
    750775
     
    831856    if (project != 0)
    832857      {
    833         if (!Cmt::get_quiet ())
    834           {
     858        //      if (!Cmt::get_quiet ())
     859        //        {
    835860            if (release != project->get_release ())
    836861              {
    837                 cerr << "#CMT> Project " << name << " requested with conflicting releases " << project->get_release () << " and " << release << endl;
     862                CmtMessage::error ("Project " + name
     863                                   + " requested with conflicting releases "
     864                                   + project->get_release () + " and " + release);
     865                //              cerr << "#CMT> Project " << name << " requested with conflicting releases " << project->get_release () << " and " << release << endl;
    838866                CmtError::set (CmtError::project_release_conflict, name);
    839867              }
    840           }
     868            //    }
    841869
    842870        // Project objects are recreated here to follow the hierarchy
     
    15921620  if (!found && (cmtprojectpath != ""))
    15931621    {
    1594       cerr << "#CMT> Project " << name << " " << release << " requested by " << m_name << " not found in CMTPROJECTPATH" << endl;
     1622      CmtMessage::warning ("Project " + name + " " + release + " requested by " + m_name + " not found in CMTPROJECTPATH");
     1623      //      cerr << "#CMT> Project " << name << " " << release << " requested by " << m_name << " not found in CMTPROJECTPATH" << endl;
    15951624    }
    15961625}
     
    18731902  if (def == 0)
    18741903    {
    1875       cerr << "#CMT> strategy " << name << " undefined" << endl;
     1904      CmtMessage::warning ("strategy " + name + " undefined");
     1905      //      cerr << "#CMT> strategy " << name << " undefined" << endl;
    18761906      return (false);
    18771907    }
     
    19301960  if (def == 0)
    19311961    {
    1932       cerr << "#CMT> strategy " << name << " undefined" << endl;
     1962      CmtMessage::warning ("strategy " + name + " undefined");
     1963      //      cerr << "#CMT> strategy " << name << " undefined" << endl;
    19331964      return;
    19341965    }
     
    19461977  if (def == 0)
    19471978    {
    1948       cerr << "#CMT> strategy " << name << " undefined" << endl;
     1979      CmtMessage::warning ("strategy " + name + " undefined");
     1980      //      cerr << "#CMT> strategy " << name << " undefined" << endl;
    19491981      return;
    19501982    }
     
    19621994  else
    19631995    {
    1964       cerr << "#CMT> requested strategy value " << value << " undefined in strategy " << name << endl;
     1996      CmtMessage::warning ("requested strategy value " + value + " undefined in strategy " + name);
     1997      //      cerr << "#CMT> requested strategy value " << value << " undefined in strategy " << name << endl;
    19651998      return;
    19661999    }
  • CMT/HEAD/source/cmt_symbol.cxx

    r400 r459  
    1414#include "cmt_system.h"
    1515#include "cmt_database.h"
     16#include "cmt_log.h"
    1617
    1718// Global inhibitor of any display
     
    773774                  }
    774775
     776                CmtMessage::warning ("Symbol " + name
     777                                     + " inconsistently redeclared from " + s1
     778                                     + " to " + s2
     779                                     + ( (use != 0) ?
     780                                         " in package " + use->get_package_name () :
     781                                         "" )
     782                                     );
     783                /*
    775784                cerr << "#CMT> Warning: Symbol " << name
    776785                     << " inconsistently redeclared from " << s1 << " to " << s2;
    777786                if (use != 0) cerr << " in package " << use->get_package_name ();
    778787                cerr << endl;
     788                */
    779789              }
    780790          }
     
    876886      if (!CmtSystem::test_directory (t))
    877887          {
     888            CmtMessage::warning ("Wrong path item " + t + " in " + name);
     889            /*
    878890              if (Cmt::get_warnings ())
    879891              {
    880892                  cerr << "#CMT> Warning: Wrong path item " << t << " in " << name << endl;
    881893              }
    882 
     894            */
    883895          }
    884896           
  • CMT/HEAD/source/cmt_syntax.cxx

    r400 r459  
    1818#include "cmt_project.h"
    1919#include "cmt_cmtpath_pattern.h"
     20#include "cmt_log.h"
    2021
    2122
     
    12941295               int line_number)
    12951296  {
    1296     cerr << "# Package " << use->get_package_name () <<
    1297       " sets obsolescent version strategy" << endl;
     1297    CmtMessage::warning ("Package " + use->get_package_name ()
     1298                         + " sets obsolescent version strategy");
     1299    //    cerr << "# Package " << use->get_package_name () <<
     1300    //      " sets obsolescent version strategy" << endl;
    12981301  }
    12991302  void action (const CmtSystem::cmt_string_vector& words,
     
    13311334      Unknown keyword : just ignore the line
    13321335    */
     1336    char num[32]; sprintf (num, "%d", line_number);
     1337    CmtMessage::error ("bad syntax in requirements of " + use->get_package_name ()
     1338                       + " " + use->version + " line #" + num
     1339                       + " [" + words[0] + "...]");
     1340    /*
    13331341    if (!Cmt::get_quiet ())
    13341342      {
     
    13371345        cerr << " [" << words[0] << "...]" << endl;
    13381346      }
     1347    */
    13391348   
    13401349    CmtError::set (CmtError::syntax_error, "ParseRequirements> ");
     
    18901899  if (CmtError::has_pending_error ())
    18911900    {
     1901      char num[32]; sprintf (num, "%d", line_number);
     1902      CmtMessage::error ("bad syntax in requirements of " + use->get_package_name ()
     1903                         + " " + use->version
     1904                         + " " + use->specified_path
     1905                         + " line #" + num
     1906                         + " [" + command + " ...]");
     1907      /*
    18921908      if (!Cmt::get_quiet ())
    18931909        {
     
    18981914          cerr << " [" << command << " ...]" << endl;
    18991915        }
     1916      */
    19001917
    19011918      return;
     
    19341951  if (CmtError::has_pending_error ())
    19351952    {
     1953      char num[32]; sprintf (num, "%d", line_number);
     1954      CmtMessage::error ("bad syntax in project file of " + project->get_name ()
     1955                         + " line #" + num
     1956                         + " [" + command + " ...]");
     1957      /*
    19361958      if (!Cmt::get_quiet ())
    19371959        {
     
    19401962          cerr << " [" << command << " ...]" << endl;
    19411963        }
     1964      */
    19421965
    19431966      return;
  • CMT/HEAD/source/cmt_system.cxx

    r444 r459  
    5858#include "cmt_error.h"
    5959#include "cmt_map.h"
     60#include "cmt_log.h"
    6061
    6162//--------------------------------------------------
     
    659660  if (::unlink (name) != 0)
    660661    {
    661       cerr << "#CMT> Cannot remove file " << name << endl;
     662      CmtMessage::error ("Cannot remove file " + name);
     663      //      cerr << "#CMT> Cannot remove file " << name << endl;
    662664      return (false);
    663665    }
     
    694696  if (status != 0)
    695697    {
    696       cerr << "#CMT> Cannot remove directory " << name << " errno=" << errno << endl;
     698      char num[32]; sprintf (num, "%d", errno);
     699      CmtMessage::error ("Cannot remove directory " + name + " errno=" + num);
     700      //      cerr << "#CMT> Cannot remove directory " << name << " errno=" << errno << endl;
    697701      return (false);
    698702    }
  • CMT/HEAD/source/cmt_tag.cxx

    r400 r459  
    202202  if (name == "")
    203203    {
     204      CmtMessage::warning ("apply_tag with empty name [" + words[1] + "]");
     205      /*
    204206      if (!Cmt::get_quiet ())
    205207        {
    206208          cerr << "#CMT> Warning: apply_tag with empty name [" << words[1] << "]" << endl;
    207209        }
     210      */
    208211    }
    209212  else
     
    485488          else
    486489            {
    487               cerr << "#Tag::add> unknown tag " << op_name << " in tag expression" << endl;
     490              CmtMessage::warning ("Tag::add> unknown tag " + op_name + " in tag expression");
     491              //              cerr << "#Tag::add> unknown tag " << op_name << " in tag expression" << endl;
    488492            }
    489493        }
  • CMT/HEAD/source/cmt_triggers.cxx

    r400 r459  
    2525#include "cmt_constituent.h"
    2626#include "cmt_syntax.h"
     27#include "cmt_log.h"
    2728
    2829//--------------------------------------------------
     
    248249  if (pos == 0)
    249250    {
     251      CmtMessage::error ("Syntax in trigger file : empty name");
     252      /*
    250253      if (!Cmt::get_quiet ())
    251254        {
    252255          cerr << "Syntax error in trigger file : empty name" << endl;
    253256        }
     257      */
    254258      exit (0);
    255259    }
    256260  if (pos == cmt_string::npos)
    257261    {
     262      CmtMessage::error ("Syntax in trigger file : no = sign");
     263      /*
    258264      if (!Cmt::get_quiet ())
    259265        {
    260266          cerr << "Syntax error in trigger file : no = sign" << endl;
    261267        }
     268      */
    262269      exit (0);
    263270    }
     
    297304  else
    298305    {
     306      CmtMessage::error ("Syntax in trigger file : bad keyword (" + name + ")");
     307      /*
    299308      if (!Cmt::get_quiet ())
    300309        {
     
    302311            name << ")" << endl;
    303312        }
     313      */
    304314      exit (0);
    305315    }
     
    418428  if ((pos == 0) || (pos == cmt_string::npos))
    419429    {
     430      CmtMessage::error ("Syntax in dependency file: " + line
     431                         + ": Missing = or target name.");
     432      /*
    420433      if (!Cmt::get_quiet ())
    421434        {
     
    423436          cerr << "  Missing = or target name." << endl;
    424437        }
     438      */
    425439      exit (1);
    426440    }
     
    447461  if (dependencies == "")
    448462    {
    449       cerr << "#CMT> Warning: It seems there is nothing after \'=\' "
    450         "in dependency file " << m_file_name << endl;
     463      CmtMessage::warning ("It seems there is nothing after \'=\' "
     464                           "in dependency file " + m_file_name);
     465      //      cerr << "#CMT> Warning: It seems there is nothing after \'=\' "
     466      //        "in dependency file " << m_file_name << endl;
    451467      return;
    452468    }
     
    831847  if (analyzer->run (file_name) == Awk::failed)
    832848    {
    833       cerr << "  File " << file_name << " not found" << endl;
     849      CmtMessage::warning (" File " + file_name + " not found");
     850      //      cerr << "  File " << file_name << " not found" << endl;
    834851    }
    835852
  • CMT/HEAD/source/cmt_use.cxx

    r437 r459  
    1616#include "cmt_database.h"
    1717#include "cmt_syntax.h"
     18#include "cmt_log.h"
    1819
    1920static void show_packages ();
     
    497498          if (!use->located ())
    498499            {
     500              CmtMessage::warning ("package " + use->get_package_name ()
     501                                   + " " + use->version + " " + use->path
     502                                   + " not found");
     503              /*
    499504              if (!Cmt::get_quiet ())
    500505                {
     
    504509                    endl;
    505510                }
     511              */
    506512              CmtError::set (CmtError::package_not_found, use->get_package_name ());
    507513            }
     
    24732479  if (!found)
    24742480    {
     2481      CmtMessage::warning ("package " + use->get_package_name ()
     2482                           + " " + use->version + " " + use->path
     2483                           + " not found"
     2484                           + ( (context_use != 0) ?
     2485                               " (requested by " + context_use->get_package_name () + ")" :
     2486                               "" )
     2487                           );
     2488      /*
    24752489      if (!Cmt::get_quiet ())
    24762490        {
     
    24862500          cerr << endl;
    24872501        }
     2502      */
    24882503
    24892504      //CmtError::set (CmtError::package_not_found, use->get_package_name ());
     
    31533168      Symbol::expand (text);
    31543169
    3155       if (!Cmt::get_quiet ()) cerr << "   Creating the reference file " << ref_file << endl;
     3170      if (CmtMessage::active (Info))
     3171        cerr << "   Creating the reference file " << ref_file << endl;
     3172          //      if (!Cmt::get_quiet ()) cerr << "   Creating the reference file " << ref_file << endl;
    31563173      text.write (ref_file);
    31573174    }
     
    31783195
    31793196  //if (!Cmt::get_quiet ())
    3180   cerr << "   Symlinking " << libname << " to " << s << endl;
     3197  if (CmtMessage::active (Info))
     3198    cerr << "   Symlinking " << libname << " to " << s << endl;
    31813199
    31823200  if (symlinkcmd == "")
     
    31843202      if (!CmtSystem::create_symlink (libname, s))
    31853203        {
    3186           cerr << "#CMT> Cannot create a symbolic link to " << libname << endl;
     3204          CmtMessage::error ("Cannot create a symbolic link to " + libname);
     3205          //      cerr << "#CMT> Cannot create a symbolic link to " << libname << endl;
    31873206          return (false);
    31883207        }
     
    32003219      if (status != 0)
    32013220        {
    3202           cerr << "#CMT> Cannot create a symbolic link to " << libname << endl;
     3221          CmtMessage::error ("Cannot create a symbolic link to " + libname);
     3222          //      cerr << "#CMT> Cannot create a symbolic link to " << libname << endl;
    32033223          return (false);
    32043224        }
     
    32193239  if (!located ())
    32203240    {
     3241      CmtMessage::warning ("package " + get_package_name ()
     3242                           + " " + version + " " + path
     3243                           + " not found");
     3244      /*
    32213245      if (!Cmt::get_quiet ())
    32223246        {
     
    32263250            endl;
    32273251        }
     3252      */
    32283253      return;
    32293254    }
     
    34943519  if (use == 0)
    34953520    {
    3496       cerr << "#CMT> No access to " << to_name << endl;
     3521      CmtMessage::warning ("No access to " + to_name);
     3522      //      cerr << "#CMT> No access to " << to_name << endl;
    34973523      return (false);
    34983524    }
  • CMT/HEAD/src/Makefile.header

    r441 r459  
    5151
    5252binclean ::
    53         @if test ! "$(bin)" = "./"; then \
     53        if test ! "$(bin)" = "./"; then \
    5454          if test -d $(bin) ; then \
    55             echo "------> (Makefile.header) Cleaning all from $(bin)"; \
     55            test -z "$(cmtmsg)" || \
     56            echo "$(CMTMSGPREFIX)" "(Makefile.header) Cleaning all from $(bin)"; \
    5657            /bin/rm -rf $(bin) ; \
    5758          fi ; \
     
    8384          /bin/rm -f $${temp_lock}; \
    8485          echo "------> (Makefile.header) Rebuilding constituents.make"; \
    85           $(cmtexe) -quiet -tag=$(tags) build constituents_makefile -out=$${temp_constituents}; status=$$?; \
     86          $(cmtexe) -tag=$(tags) build constituents_makefile -out=$${temp_constituents}; status=$$?; \
    8687          if test $${status} = 0; then \
    8788            /bin/rm -f $(cmt_local_tagfile); \
     
    100101        $(echo) "(Makefile.header) Rebuilding $@"; \
    101102          if test ! -d $(@D) ; then $(mkdir) -p $(@D); fi; \
    102           $(cmtexe) -quiet -tag=$(tags) build constituents_makefile -out=$@; \
     103          $(cmtexe) -tag=$(tags) build constituents_makefile -out=$@; \
    103104          retval=$$?; \
    104105          if test $${retval} != 0; then \
     
    115116          if test -f $@; then rm -f $@; fi; \
    116117          if test ! -d $(@D); then $(mkdir) -p $(@D); fi; \
    117           $(cmtexe) -quiet -tag=$(tags) build tag_makefile >$@
     118          $(cmtexe) -tag=$(tags) build tag_makefile >$@
    118119
    119120#         && /bin/echo $@ ok   
     
    125126#
    126127$(gmake_hosts) ::
    127         rsh $@ "sh -c '(cd `$(cmtexe) show pwd -quiet`; . setup.sh; gmake $(MAKEFLAGS) $(target))'"
     128        rsh $@ "sh -c '(cd `$(cmtexe) show pwd`; . setup.sh; gmake $(MAKEFLAGS) $(target))'"
    128129
    129130$(make_hosts) ::
     
    146147        @echo 'binclean    : fast erase of the binary directory'
    147148        @echo ' '
    148         @groups=`$(cmtexe) show groups -quiet -tag=$(tags)`; \
     149        @groups=`$(cmtexe) show groups -tag=$(tags)`; \
    149150          for g in $${groups}; do \
    150151            echo "$${g} : rebuild all constituents of group $${g}"; \
    151152          done
    152153        @echo "Constituents:"; \
    153           for c in `$(cmtexe) show constituent_names -quiet -tag=$(tags)` ; do \
     154          for c in `$(cmtexe) show constituent_names -tag=$(tags)` ; do \
    154155            echo "  $${c}  $${c}clean"; \
    155156          done
  • CMT/HEAD/src/NMakefile.header

    r445 r459  
    5555
    5656
    57 !if [$(cmtexe) -quiet build constituents_makefile -tag=$(tags)] == 0
     57!if [$(cmtexe) build constituents_makefile -tag=$(tags)] == 0
    5858!endif
    5959
  • CMT/HEAD/src/constituents.make

    r11 r459  
    99#       @if test ! -f constituents.make -o "$(build_strategy)" = "rebuild_makefiles"; then \
    1010#         echo "Rebuilding $@"; \
    11 #         $(cmtexe) build constituents_makefile -quiet -tag=$(tags); \
     11#         $(cmtexe) build constituents_makefile -tag=$(tags); \
    1212#       fi
    1313#
  • CMT/HEAD/src/constituents.nmake

    r11 r459  
    66
    77#
    8 #!if [echo $(cmtexe) -quiet build constituents_makefile -tag=$(tags)] == 0
     8#!if [echo $(cmtexe) build constituents_makefile -tag=$(tags)] == 0
    99#!endif
    10 #!if [$(cmtexe) -quiet build constituents_makefile -tag=$(tags)] == 0
     10#!if [$(cmtexe) build constituents_makefile -tag=$(tags)] == 0
    1111#!endif
    1212#
Note: See TracChangeset for help on using the changeset viewer.