Changeset 588 for CMT/HEAD/source/cmt_commands.cxx
- Timestamp:
- Nov 27, 2011, 4:36:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_commands.cxx
r568 r588 694 694 } 695 695 } 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 } 696 720 else if (arg == "dependencies") 697 721 { 698 722 if (argc > 0) 699 723 { 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 } 701 753 cmt.m_action = action_build_dependencies; 702 754 } 703 755 else 704 756 { 705 CmtMessage::error ("syntax: arguments missing");757 //CmtMessage::error ("syntax: arguments missing"); 706 758 // if (!cmt.m_quiet) cerr << "#CMT> syntax error : arguments missing " << endl; 759 CmtError::set (CmtError::syntax_error, "arguments missing"); 707 760 help_action = action_help; 708 761 cmt.m_action = action_build_dependencies; … … 2309 2362 void CommandHelp::show (ActionType action) 2310 2363 { 2311 // cerr << "CommandHelp::show> action = " << action << endl;2364 // cerr << "CommandHelp::show> action = " << action << endl; 2312 2365 2313 2366 static HelpTexts& help_texts = get_help_texts (); … … 2375 2428 help_texts.add () = "build constituents_makefile [-out=<path>] : generate constituents Makefile"; 2376 2429 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"; 2378 2432 help_texts.add () = "build library_links : build symbolic links towards all imported libraries"; 2379 2433 help_texts.add () = "build make_setup : build a compiled version of setup scripts"; … … 2477 2531 help.add (action_build_constituents_makefile, help_texts[action_build_constituents_makefile]); 2478 2532 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]); 2479 2534 help.add (action_build_dependencies, help_texts[action_build_dependencies]); 2480 2535 help.add (action_build_library_links, help_texts[action_build_library_links]);
Note: See TracChangeset
for help on using the changeset viewer.