Ignore:
Timestamp:
Aug 3, 2010, 5:11:00 PM (14 years ago)
Author:
rybkin
Message:

See C.L. 432

File:
1 edited

Legend:

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

    r541 r547  
    584584            }
    585585        }
     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        }
    586614      else if (arg == "constituents_makefile")
    587615        {
    588616          fill_arguments ();
    589617          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;
    590623        }
    591624      else if (arg == "dependencies")
     
    22352268  help_texts.add () =  "build <option>          : build actions. (Try cmt help build)";
    22362269  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)";
    22372271  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";
    22382273  help_texts.add () =  "build dependencies      : generate dependencies";
    22392274  help_texts.add () =  "build library_links     : build symbolic links towards all imported libraries";
     
    23352370  help.add (action_build, help_texts[action_build]);
    23362371  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]);
    23372373  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]);
    23382375  help.add (action_build_dependencies, help_texts[action_build_dependencies]);
    23392376  help.add (action_build_library_links, help_texts[action_build_library_links]);
Note: See TracChangeset for help on using the changeset viewer.