Changeset 454
- Timestamp:
- Apr 17, 2008, 11:00:03 AM (16 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r453 r454 1 2008-04-17 <rybkin@lal.in2p3.fr> 355 2 3 * source/cmt_cvs.cxx: Add the -rs suffix option to the cmt checkout command 4 (proposed by David Rousseau) 5 1 6 2008-04-15 <rybkin@lal.in2p3.fr> 354 2 7 -
CMT/HEAD/source/cmt_cvs.cxx
r452 r454 2157 2157 void help () 2158 2158 { 2159 cerr << "Usage:" << endl; 2159 2160 cerr << "> cd <some work area>" << endl; 2160 cerr << "> cmt checkout [modifier ...] <package|project>" << endl;2161 cerr << "> cmt checkout [modifier]... <package|project>..." << endl; 2161 2162 cerr << "" << endl; 2162 2163 cerr << " modifier :" << endl; … … 2168 2169 cerr << " -o offset Offset in the CVS repository" << endl; 2169 2170 cerr << " -requirements <requirements file path> Check out packages referenced in this requirements file" << endl; 2170 cerr << " -t Change file timestamps to the date of checkout" << endl;2171 cerr << " -t Change file timestamps to the date of checkout" << endl; 2171 2172 cerr << " -n simulation mode on" << endl; 2172 2173 cerr << " -no_config Disable config step after checkout" << endl; 2173 2174 cerr << " -v verbose mode on" << endl; 2175 cerr << " -rs suffix Same as -r <packagename|projectname>suffix" << endl; 2174 2176 cerr << " --help print this help" << endl; 2177 cerr << "" << endl; 2178 cerr << "(Modifiers are recognised anywhere on the command line)" << endl; 2175 2179 cerr << "" << endl; 2176 2180 cerr << "> cmt cvstags <package|project>" << endl; … … 2337 2341 m_cvs_offset = ""; 2338 2342 2339 cmt_string module;2343 //cmt_string module; 2340 2344 2341 2345 m_recursive = false; … … 2345 2349 bool need_version_tag = false; 2346 2350 cmt_string version_tag; 2351 2352 bool need_version_tag_suffix = false; 2353 cmt_string version_tag_suffix; 2354 2355 CmtSystem::cmt_string_vector modules; 2347 2356 2348 2357 … … 2404 2413 m_head = false; 2405 2414 checkout_from_requirements (option); 2415 } 2416 else if (need_version_tag_suffix) 2417 { 2418 need_version_tag_suffix = false; 2419 version_tag_suffix = option; 2406 2420 } 2407 2421 else … … 2452 2466 need_requirements_file = true; 2453 2467 } 2468 else if (option == "-rs") 2469 { 2470 need_version_tag_suffix = true; 2471 m_head = false; 2472 } 2454 2473 else if (option == "--help") 2455 2474 { … … 2464 2483 else 2465 2484 { 2466 do_checkout_phase1 (option, m_version_dir, version_tag); 2467 } 2468 } 2485 modules.push_back (option); 2486 //do_checkout_phase1 (option, m_version_dir, version_tag); 2487 } 2488 } 2489 } 2490 if ( modules.size () < 1) 2491 { 2492 help (); 2493 return; 2494 } 2495 for (int arg = 0; arg < modules.size (); arg++) 2496 { 2497 if (version_tag_suffix != "") 2498 { 2499 cmt_string name; 2500 CmtSystem::basename (modules[arg], name); 2501 version_tag = name + version_tag_suffix; 2502 } 2503 do_checkout_phase1 (modules[arg], m_version_dir, version_tag); 2469 2504 } 2470 2505 }
Note: See TracChangeset
for help on using the changeset viewer.