- Timestamp:
- Jan 15, 2006, 2:10:25 AM (17 years ago)
- Location:
- trunk/bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Parameter.cc
r50 r52 17 17 bool ok=false; 18 18 std::string myargv(argv[i]); 19 if (myargv=="-d" || myargv=="--directory"){ 20 if (++i<argc){ 21 targetdir_= std::string(argv[i]); 22 ok=true; 23 } 24 } 25 else if (myargv=="-f" || myargv=="--force"){ 19 if (myargv=="-f" || myargv=="--force"){ 26 20 force_=true; 27 21 ok=true; … … 30 24 help(); 31 25 exit(0); // always exit after printing help 26 } 27 else if (myargv=="-r" || myargv=="--root"){ 28 if (++i<argc){ 29 root_= std::string(argv[i]); 30 ok=true; 31 } 32 } 33 else if (myargv=="-t" || myargv=="--target"){ 34 if (++i<argc){ 35 targetdir_= std::string(argv[i]); 36 ok=true; 37 } 32 38 } 33 39 else if (myargv=="-v" || myargv=="--verbose"){ … … 71 77 << "\n" 72 78 << "Valid options:\n" 73 << " -d [--dir] arg : output target directory [svnstat_output]\n"74 79 << " -f [--force] : remove target directory/file if it exists\n" 75 80 << " [no force]. NOTE recursive delete.\n" 76 81 << " -h [--help] : display this help and exit\n" 82 << " -r [--root] arg : svn controlled directory to perform\n" 83 << " statistics calculation on [.]\n" 84 << " -t [--target] arg : output directory [svnstat_output]\n" 77 85 << " -v [--verbose] : explain what is being done\n" 78 86 << " --version : print version information and exit\n" -
trunk/bin/svnstat.cc
r50 r52 3 3 #include "Parameter.h" 4 4 #include "Directory.h" 5 #include "Gnuplot.h" 5 6 #include "rmdirhier.h" 6 7 … … 31 32 option.targetdir()); 32 33 33 /*34 34 Directory tree(option.root()); 35 35 tree.purge(); 36 36 tree.parse(); 37 37 38 Stats::gnuplot_pipe_.command("cd 'svnstat_output'"); 39 chdir("svnstat_output"); 40 system("ln -fns testrepo.html index.html"); 38 Stats::gnuplot_pipe_.command(string("cd '")+option.targetdir()+"'"); 39 chdir(option.targetdir().c_str()); 41 40 tree.print("./"); 42 */43 41 44 42 exit(0); // normal exit
Note: See TracChangeset
for help on using the changeset viewer.