Ignore:
Timestamp:
Nov 29, 2008, 5:20:44 PM (16 years ago)
Author:
rybkin
Message:

See C.L. 377

File:
1 edited

Legend:

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

    r471 r482  
    10571057
    10581058/*----------------------------------------------------------*/
    1059 void Project::show_paths ()
    1060 {
    1061   VisitorForShowPaths visitor;
    1062 
    1063   start_visit (visitor);
     1059void Project::show_paths (const CmtSystem::cmt_string_vector& arguments)
     1060//void Project::show_paths ()
     1061{
     1062  if (arguments.size () == 0)
     1063    {
     1064      const ProjectPtrVector Ordered = Project::ordered_projects ();
     1065      for (int i = 0; i < Ordered.size (); i++)
     1066        {
     1067          const Project* p = Ordered[i];
     1068          const cmt_string& w = p->get_cmtpath_pwd ();
     1069          const cmt_string& s = p->get_cmtpath_source ();
     1070         
     1071          if (s == "default path") continue;
     1072         
     1073          if (CmtSystem::test_directory (w))
     1074            {
     1075              cout << "# Add path " << w << " from " << s << endl;
     1076            }
     1077        }
     1078    }
     1079  else if (arguments.size () == 1 && cmt_string (arguments[0]) == "-d")
     1080    {
     1081      VisitorForShowPaths visitor;
     1082      start_visit (visitor);
     1083    }
     1084  else
     1085    CmtMessage::error ("show_paths: unexpected argument(s)");
    10641086}
    10651087
Note: See TracChangeset for help on using the changeset viewer.