Changeset 547 for CMT/HEAD/source/cmt_commands.cxx
- Timestamp:
- Aug 3, 2010, 5:11:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_commands.cxx
r541 r547 584 584 } 585 585 } 586 else if (arg == "constituent_config") 587 { 588 // if (argc > 0) 589 if (argc == 1 || 590 argc == 2 && 591 (cmt_string (argv[0]).substr (0, 5) == "-out=" || 592 cmt_string (argv[1]).substr (0, 5) == "-out=") 593 ) 594 { 595 //fill_one_argument (); 596 fill_arguments (); 597 cmt.m_action = action_build_constituent_config; 598 } 599 else if (argc > 0) 600 { 601 CmtMessage::error ("syntax: wrong arguments"); 602 // if (!cmt.m_quiet) cerr << "#CMT> syntax error : wrong arguments" << endl; 603 cmt.m_action = action_build_constituent_config; 604 help_action = action_help; 605 } 606 else 607 { 608 CmtMessage::error ("syntax: constituent name missing"); 609 // if (!cmt.m_quiet) cerr << "#CMT> syntax error : constituent name missing" << endl; 610 cmt.m_action = action_build_constituent_config; 611 help_action = action_help; 612 } 613 } 586 614 else if (arg == "constituents_makefile") 587 615 { 588 616 fill_arguments (); 589 617 cmt.m_action = action_build_constituents_makefile; 618 } 619 else if (arg == "constituents_config") 620 { 621 fill_arguments (); 622 cmt.m_action = action_build_constituents_config; 590 623 } 591 624 else if (arg == "dependencies") … … 2235 2268 help_texts.add () = "build <option> : build actions. (Try cmt help build)"; 2236 2269 help_texts.add () = "build constituent_makefile <constituent> : generate constituent Makefile fragment"; 2270 help_texts.add () = "build constituent_config <constituent> : generate constituent Makefile fragment, also tag specific Makefile, and setup definitions file, if constituent has associated tag (via -target_tag option, or is action)"; 2237 2271 help_texts.add () = "build constituents_makefile : generate constituents.make"; 2272 help_texts.add () = "build constituents_config : generate constituents.make, tag specific Makefile, and setup definitions file"; 2238 2273 help_texts.add () = "build dependencies : generate dependencies"; 2239 2274 help_texts.add () = "build library_links : build symbolic links towards all imported libraries"; … … 2335 2370 help.add (action_build, help_texts[action_build]); 2336 2371 help.add (action_build_constituent_makefile, help_texts[action_build_constituent_makefile]); 2372 help.add (action_build_constituent_config, help_texts[action_build_constituent_config]); 2337 2373 help.add (action_build_constituents_makefile, help_texts[action_build_constituents_makefile]); 2374 help.add (action_build_constituents_config, help_texts[action_build_constituents_config]); 2338 2375 help.add (action_build_dependencies, help_texts[action_build_dependencies]); 2339 2376 help.add (action_build_library_links, help_texts[action_build_library_links]);
Note: See TracChangeset
for help on using the changeset viewer.