Ignore:
Timestamp:
Nov 27, 2011, 4:36:15 PM (13 years ago)
Author:
rybkin
Message:

See C.L. 465

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_commands.cxx

    r568 r588  
    694694            }
    695695        }
     696      else if (arg == "broadcast_config")
     697        {
     698          cmt.m_action = action_build_broadcast_config;
     699
     700          if (cmt.m_scope_filtering_mode == default_filtering_mode)
     701            {
     702              cmt.m_scope_filtering_mode = reach_private_uses;
     703            }
     704
     705          while (argc > 0)
     706            {
     707              cmt_string arg(argv[0]);
     708              if (arg.substr (0, 5) == "-out=")
     709                {
     710                  fill_one_argument ();
     711                }
     712              else
     713                {
     714                  help_action = action_help;
     715                  CmtError::set (CmtError::syntax_error, arg + ": wrong argument");
     716                  break;
     717                }
     718            }
     719        }
    696720      else if (arg == "dependencies")
    697721        {
    698722          if (argc > 0)
    699723            {
    700               fill_arguments ();
     724              //              fill_arguments ();
     725              while (argc > 0)
     726                {
     727                  cmt_string arg(argv[0]);
     728                  if (arg.substr (0, 3) == "-f=")
     729                    {
     730                      shift ();
     731                      extra_file = arg.substr (3);
     732                    }
     733                  else if (arg.substr (0, 3) == "-e=")
     734                    {
     735                      shift ();
     736                      extra_line = arg.substr (3);
     737                    }
     738                  else if (arg == "-with_cmt")
     739                    {
     740                      shift ();
     741                      cmt.m_use_cmt = true;
     742                    }
     743                  else if (arg == "-without_cmt")
     744                    {
     745                      shift ();
     746                      cmt.m_use_cmt = false;
     747                    }
     748                  else
     749                    {
     750                      fill_one_argument ();
     751                    }
     752                } 
    701753              cmt.m_action = action_build_dependencies;
    702754            }
    703755          else
    704756            {
    705               CmtMessage::error ("syntax: arguments missing");
     757              //CmtMessage::error ("syntax: arguments missing");
    706758              //              if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing " << endl;
     759              CmtError::set (CmtError::syntax_error, "arguments missing");
    707760              help_action = action_help;
    708761              cmt.m_action = action_build_dependencies;
     
    23092362void CommandHelp::show (ActionType action)
    23102363{
    2311   //cerr << "CommandHelp::show> action = " << action << endl;
     2364  //  cerr << "CommandHelp::show> action = " << action << endl;
    23122365
    23132366  static HelpTexts& help_texts = get_help_texts ();
     
    23752428  help_texts.add () =  "build constituents_makefile [-out=<path>] : generate constituents Makefile";
    23762429  help_texts.add () =  "build constituents_config [-out=<path>] [-with_cmt] [-without_cmt] : generate constituents Makefile, tag specific Makefile, and setup definitions file, also input requirements file for constituent(s) without associated tag";
    2377   help_texts.add () =  "build dependencies      : generate dependencies";
     2430  help_texts.add () =  "build broadcast_config [-out=<path>] : generate broadcast Makefile, and broadcast specific macros Makefile";
     2431  help_texts.add () =  "build dependencies [-out=<path>] [-all_sources] [-no_stamps] [-I<directory>]... [-start_all FILE... -end_all] NAME FILE... : generate dependencies for FILEs of constituent NAME";
    23782432  help_texts.add () =  "build library_links     : build symbolic links towards all imported libraries";
    23792433  help_texts.add () =  "build make_setup        : build a compiled version of setup scripts";
     
    24772531  help.add (action_build_constituents_makefile, help_texts[action_build_constituents_makefile]);
    24782532  help.add (action_build_constituents_config, help_texts[action_build_constituents_config]);
     2533  help.add (action_build_broadcast_config, help_texts[action_build_broadcast_config]);
    24792534  help.add (action_build_dependencies, help_texts[action_build_dependencies]);
    24802535  help.add (action_build_library_links, help_texts[action_build_library_links]);
Note: See TracChangeset for help on using the changeset viewer.