- Timestamp:
- Nov 28, 2011, 4:29:23 PM (12 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r589 r590 1 2011-11-28 <rybkin@lal.in2p3.fr> 467 2 3 * source/cmt_generators.cxx: In class DependencyGenerator, function build, 4 make constituent name optional for command cmt build dependencies 5 * source/cmt_commands.cxx: Update command help info, in class CommandHelp, 6 functions show, show_all, print help info on stdout (rather than stderr) 7 * mgr/fragments/dependencies: Specify constituent name via option value 8 * source/cmt_vcs.cxx: In class Vcs, function help, print help info on 9 stdout (rather than stderr) 10 1 11 2011-11-28 <rybkin@lal.in2p3.fr> 466 2 12 -
CMT/HEAD/mgr/fragments/dependencies
r588 r590 5 5 $(bin)${CONSTITUENT}_dependencies.make : $(use_requirements) $(cmt_final_setup_${CONSTITUENT}) 6 6 $(echo) "(${CONSTITUENT}.make) Rebuilding $@"; \ 7 $(build_dependencies) -out=$@ -start_all ${LINE} -end_all $(includes) $(app_${CONSTITUENT}_cppflags) $(lib_${CONSTITUENT}_cppflags) ${CONSTITUENT} $? -f=$(cmt_dependencies_in_${CONSTITUENT}) -without_cmt7 $(build_dependencies) -out=$@ -start_all ${LINE} -end_all $(includes) $(app_${CONSTITUENT}_cppflags) $(lib_${CONSTITUENT}_cppflags) -name=${CONSTITUENT} $? -f=$(cmt_dependencies_in_${CONSTITUENT}) -without_cmt 8 8 9 9 -include $(bin)${CONSTITUENT}_dependencies.make -
CMT/HEAD/source/cmt_commands.cxx
r588 r590 2327 2327 static HelpTexts& help_texts = get_help_texts (); 2328 2328 2329 c err<< "#> cmt command [option...]" << endl;2330 c err<< "# command :" << endl;2329 cout << "#> cmt command [option...]" << endl; 2330 cout << "# command :" << endl; 2331 2331 2332 2332 int i; … … 2336 2336 const cmt_string& s = help_texts[i]; 2337 2337 if (s == "") break; 2338 c err<< "# " << s << endl;2339 } 2340 2341 c err<< "# global options :" << endl;2342 2343 c err<< "# -disable_warnings : don't print warnings" << endl;2344 c err<< "# -quiet : don't print errors" << endl;2345 c err<< "# -use=<p>:<v>:<path> : set package version path" << endl;2346 c err<< "# -pack=<package> : set package" << endl;2347 c err<< "# -version=<version> : set version" << endl;2348 c err<< "# -path=<path> : set root path" << endl;2349 c err<< "# -f=<requirements-file> : set input file" << endl;2350 c err<< "# -e=<statement> : add a one line statement" << endl;2351 c err<< "# -tag=<tag-list> : select a new tag-set" << endl;2352 c err<< "# -tag_add=<tag-list> : add specific comma-separated tag(s)" << endl;2353 c err<< "# -tag_remove=<tag-list> : remove specific comma-separated tag(s)" << endl;2354 c err<< "# -warnings : display various warnings" << endl;2355 c err<< "# -with_version_directory : reset to default structuring style" << endl;2356 c err<< "# -without_version_directory : switch structuring style" << endl;2357 c err<< "# -cleanup : activate install area cleanup" << endl;2358 c err<< "# -no_cleanup : inhibit install area cleanup" << endl;2359 c err<< "# -xml : output in XML format (cmt setup, cmt show projects, cmt show uses)" << endl;2338 cout << "# " << s << endl; 2339 } 2340 2341 cout << "# global options :" << endl; 2342 2343 cout << "# -disable_warnings : don't print warnings" << endl; 2344 cout << "# -quiet : don't print errors" << endl; 2345 cout << "# -use=<p>:<v>:<path> : set package version path" << endl; 2346 cout << "# -pack=<package> : set package" << endl; 2347 cout << "# -version=<version> : set version" << endl; 2348 cout << "# -path=<path> : set root path" << endl; 2349 cout << "# -f=<requirements-file> : set input file" << endl; 2350 cout << "# -e=<statement> : add a one line statement" << endl; 2351 cout << "# -tag=<tag-list> : select a new tag-set" << endl; 2352 cout << "# -tag_add=<tag-list> : add specific comma-separated tag(s)" << endl; 2353 cout << "# -tag_remove=<tag-list> : remove specific comma-separated tag(s)" << endl; 2354 cout << "# -warnings : display various warnings" << endl; 2355 cout << "# -with_version_directory : reset to default structuring style" << endl; 2356 cout << "# -without_version_directory : switch structuring style" << endl; 2357 cout << "# -cleanup : activate install area cleanup" << endl; 2358 cout << "# -no_cleanup : inhibit install area cleanup" << endl; 2359 cout << "# -xml : output in XML format (cmt setup, cmt show projects, cmt show uses)" << endl; 2360 2360 } 2361 2361 … … 2369 2369 { 2370 2370 const cmt_string& s = get_help_text (action); 2371 c err<< "# " << s << endl;2371 cout << "# " << s << endl; 2372 2372 int i; 2373 2373 … … 2375 2375 { 2376 2376 const cmt_string& s = help_texts[i]; 2377 c err<< "# " << s << endl;2377 cout << "# " << s << endl; 2378 2378 } 2379 2379 } … … 2385 2385 { 2386 2386 const cmt_string& s = help_texts[i]; 2387 c err<< "# " << s << endl;2387 cout << "# " << s << endl; 2388 2388 } 2389 2389 } … … 2395 2395 { 2396 2396 const cmt_string& s = help_texts[i]; 2397 c err<< "# " << s << endl;2397 cout << "# " << s << endl; 2398 2398 } 2399 2399 } … … 2401 2401 { 2402 2402 const cmt_string& s = get_help_text (action); 2403 c err<< "# " << s << endl;2403 cout << "# " << s << endl; 2404 2404 } 2405 2405 } … … 2429 2429 help_texts.add () = "build constituents_config [-out=<path>] [-with_cmt] [-without_cmt] : generate constituents Makefile, tag specific Makefile, and setup definitions file, also input requirements file for constituent(s) without associated tag"; 2430 2430 help_texts.add () = "build broadcast_config [-out=<path>] : generate broadcast Makefile, and broadcast specific macros Makefile"; 2431 help_texts.add () = "build dependencies [-out=<path>] [- all_sources] [-no_stamps] [-I<directory>]... [-start_all FILE... -end_all] NAME FILE... : generate dependencies for FILEs of constituent NAME";2431 help_texts.add () = "build dependencies [-out=<path>] [-name=<constituent>] [-all_sources] [-no_stamps] [-I<directory>]... [-start_all FILE... -end_all] FILE... : generate dependencies for FILEs [of constituent <constituent>]"; 2432 2432 help_texts.add () = "build library_links : build symbolic links towards all imported libraries"; 2433 2433 help_texts.add () = "build make_setup : build a compiled version of setup scripts"; -
CMT/HEAD/source/cmt_generators.cxx
r588 r590 3073 3073 m_deps_builder.clear (); 3074 3074 m_stamps = true; 3075 m_name = " ";3075 m_name = "unnamed"; 3076 3076 } 3077 3077 … … 3294 3294 m_output_file_name = file_name; 3295 3295 } 3296 else if (file_name.substr (0, 6) == "-name=" || 3297 file_name.substr (0, 6) == "-name:" || 3298 file_name.substr (0, 6) == "/name:" || 3299 file_name.substr (0, 6) == "/name=") 3300 { 3301 file_name.erase (0, 6); 3302 m_name = file_name; 3303 } 3296 3304 else if (file_name == "-all_sources" || 3297 3305 file_name == "/all_sources") … … 3360 3368 all.push_back (file_name); 3361 3369 } 3362 else if (m_name.size () != 0)3370 else 3363 3371 { 3364 3372 cli_input.push_back (file_name); 3365 }3366 else3367 {3368 if (file_name.size () != 0)3369 m_name = file_name;3370 3373 } 3371 3374 } … … 3377 3380 3378 3381 //cerr << "m_name: " << m_name << endl; 3382 /* 3379 3383 if (m_name.size () == 0) 3380 3384 { … … 3383 3387 return; 3384 3388 } 3385 3389 */ 3386 3390 //cerr << "config_files: " << config_files << endl; 3387 3391 3388 m_constituent = Constituent::find (m_name); 3392 if (0 != m_name.size ()) 3393 m_constituent = Constituent::find (m_name); 3389 3394 3390 3395 if (!config_files && 0 == cli_input.size () && … … 3482 3487 // or 3483 3488 // o m_constituent sources 3484 set_source_files (all); 3485 if (0 == validate (cli_input)) 3486 { 3487 // cli_input contains source files ONLY 3488 // calculate dependencies for them ONLY 3489 if (CmtSystem::test_file (m_output_file_name)) 3489 if (int n = set_source_files (all)) 3490 { 3491 if (0 == validate (cli_input)) 3490 3492 { 3491 if (!dependencies.read (m_output_file_name)) 3493 // cli_input contains source files ONLY 3494 // calculate dependencies for them ONLY 3495 if (CmtSystem::test_file (m_output_file_name)) 3492 3496 { 3493 CmtError::set (CmtError::file_access_error, m_output_file_name); 3494 return; 3497 if (!dependencies.read (m_output_file_name)) 3498 { 3499 CmtError::set (CmtError::file_access_error, m_output_file_name); 3500 return; 3501 } 3495 3502 } 3503 fill_dependencies (dependencies, cli_input); 3496 3504 } 3505 else 3506 { 3507 all_sources = true; 3508 // calculate dependencies for 3509 // all cli sources 3510 // or 3511 // m_constituent sources 3512 fill_dependencies (dependencies); 3513 } 3514 } 3515 else 3516 { 3517 // calculate dependencies for all we have 3497 3518 fill_dependencies (dependencies, cli_input); 3498 }3499 else3500 {3501 all_sources = true;3502 // calculate dependencies for3503 // all cli sources3504 // or3505 // m_constituent sources3506 fill_dependencies (dependencies);3507 3519 } 3508 3520 /* … … 3977 3989 //-------------------------------------------------- 3978 3990 /** 3979 * Returns 0, if each file in files is found in m_source_files,3991 * Returns 0, if each file in @files is found in m_source_files, 3980 3992 * otherwise returns 1 3981 3993 */ -
CMT/HEAD/source/cmt_vcs.cxx
r540 r590 3693 3693 void Vcs::help () 3694 3694 { 3695 c err<< "Usage:" << endl;3696 c err<< "> cd <some work area>" << endl;3697 c err<< "> cmt co | checkout [modifier]... <package|project>..." << endl;3698 c err<< "" << endl;3699 c err<< " modifier :" << endl;3700 c err<< " -l Do not process used packages (default)." << endl;3701 c err<< " -R Process used products recursively." << endl;3702 c err<< " -r rev Check out version tag rev (may be HEAD)." << endl;3703 c err<< " -C Determine version tag and/or package container from context." << endl;3704 c err<< " -i Do not check out, show package(s) information only." << endl;3705 c err<< " -vd dir Use this version directory instead of version tag." << endl;3706 c err<< " -d dir Check out into dir instead of module name." << endl;3707 c err<< " -o offset Offset in the repository" << endl;3708 c err<< " -requirements <requirements file path> Check out packages referenced in this requirements file" << endl;3695 cout << "Usage:" << endl; 3696 cout << "> cd <some work area>" << endl; 3697 cout << "> cmt co | checkout [modifier]... <package|project>..." << endl; 3698 cout << "" << endl; 3699 cout << " modifier :" << endl; 3700 cout << " -l Do not process used packages (default)." << endl; 3701 cout << " -R Process used products recursively." << endl; 3702 cout << " -r rev Check out version tag rev (may be HEAD)." << endl; 3703 cout << " -C Determine version tag and/or package container from context." << endl; 3704 cout << " -i Do not check out, show package(s) information only." << endl; 3705 cout << " -vd dir Use this version directory instead of version tag." << endl; 3706 cout << " -d dir Check out into dir instead of module name." << endl; 3707 cout << " -o offset Offset in the repository" << endl; 3708 cout << " -requirements <requirements file path> Check out packages referenced in this requirements file" << endl; 3709 3709 //cerr << " -t Change file timestamps to the date of checkout" << endl; 3710 3710 //cerr << " -n simulation mode on" << endl; 3711 c err<< " -no_config Disable config step after checkout" << endl;3711 cout << " -no_config Disable config step after checkout" << endl; 3712 3712 //cerr << " -v verbose mode on" << endl; 3713 c err<< " -rs suffix Same as -r <packagename|projectname>suffix" << endl;3714 c err<< " --help Print this help" << endl;3715 c err<< "" << endl;3716 c err<< "(Modifiers are recognised anywhere on the command line.)" << endl;3713 cout << " -rs suffix Same as -r <packagename|projectname>suffix" << endl; 3714 cout << " --help Print this help" << endl; 3715 cout << "" << endl; 3716 cout << "(Modifiers are recognised anywhere on the command line.)" << endl; 3717 3717 // cerr << "" << endl; 3718 3718 // cerr << "> cmt cvstags <package|project>" << endl; 3719 3719 // cerr << "> cmt cvssubpackages <directory>" << endl; 3720 3720 // cerr << "> cmt cvssubprojects <directory>" << endl; 3721 c err<< "" << endl;3721 cout << "" << endl; 3722 3722 } 3723 3723
Note: See TracChangeset
for help on using the changeset viewer.