Changeset 482
- Timestamp:
- Nov 29, 2008, 5:20:44 PM (16 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r481 r482 1 2008-11-29 <rybkin@lal.in2p3.fr> 377 2 3 * source/cmt_project.cxx: In function show_paths, introduce and implement 4 the -d option of the "cmt show path" command to show how the the package 5 search paths list is formed (default: the original succinct one line per 6 path output) 7 * source/cmt_project.h: idem 8 * source/cmt_parser.cxx: idem 9 * source/cmt_commands.cxx: idem. Add help text for the introduced option. 10 1 11 2008-11-28 <rybkin@lal.in2p3.fr> 376 2 12 3 13 * source/cmt_parser.cxx: In function fill_for_all_constituents, ensure that 4 14 the <constituent>_use_linkopts macro is set in case the constituent 5 -import=<package> options constituenteffectively import nothing15 -import=<package> options effectively import nothing 6 16 7 17 2008-11-18 <rybkin@lal.in2p3.fr> 375 -
CMT/HEAD/source/cmt_commands.cxx
r466 r482 1423 1423 else if (arg == "path") 1424 1424 { 1425 cmt.m_action = action_show_path; 1425 if (argc == 0) 1426 { 1427 cmt.m_action = action_show_path; 1428 } 1429 else if (argc == 1 && cmt_string (argv[0]) == "-d") 1430 { 1431 fill_one_argument (); 1432 cmt.m_action = action_show_path; 1433 } 1434 else 1435 { 1436 cmt.m_action = action_show_path; 1437 help_action = action_help; 1438 } 1426 1439 } 1427 1440 else if (arg == "pattern") … … 2240 2253 help_texts.add () = "show manager : package manager"; 2241 2254 help_texts.add () = "show packages : packages reachable from the current context"; 2242 help_texts.add () = "show path : the package search list";2255 help_texts.add () = "show path [-d] : the package search paths list [in detail]"; 2243 2256 help_texts.add () = "show pattern <name> : the pattern definition and usages"; 2244 2257 help_texts.add () = "show pattern_names : pattern names"; -
CMT/HEAD/source/cmt_parser.cxx
r481 r482 4076 4076 4077 4077 //---------------------------------------------------------- 4078 void Cmt::do_show_path (const ArgParser& /*ap*/)4079 { 4080 Project::show_paths ( );4078 void Cmt::do_show_path (const ArgParser& ap) 4079 { 4080 Project::show_paths (ap.arguments); 4081 4081 } 4082 4082 -
CMT/HEAD/source/cmt_project.cxx
r471 r482 1057 1057 1058 1058 /*----------------------------------------------------------*/ 1059 void Project::show_paths () 1060 { 1061 VisitorForShowPaths visitor; 1062 1063 start_visit (visitor); 1059 void 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)"); 1064 1086 } 1065 1087 -
CMT/HEAD/source/cmt_project.h
r471 r482 113 113 static void show_all (); 114 114 static void show_specified_strategies_for_all (); 115 static void show_paths (); 115 static void show_paths (const CmtSystem::cmt_string_vector& arguments); 116 // static void show_paths (); 116 117 static const cmt_string& get_project_file_name (); 117 118
Note: See TracChangeset
for help on using the changeset viewer.