- Timestamp:
- Aug 12, 2006, 11:11:46 AM (16 years ago)
- Location:
- trunk/bin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Parameter.cc
r122 r149 4 4 Copyright (C) 2006 Jari Häkkinen, Peter Johansson 5 5 6 This file is part of svn stat, http://lev.thep.lu.se/trac/svnstat6 This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest 7 7 8 svn stat is free software; you can redistribute it and/or modify it8 svndigest is free software; you can redistribute it and/or modify it 9 9 under the terms of the GNU General Public License as published by 10 10 the Free Software Foundation; either version 2 of the License, or 11 11 (at your option) any later version. 12 12 13 svn stat is distributed in the hope that it will be useful, but13 svndigest is distributed in the hope that it will be useful, but 14 14 WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 16 General Public License for more details. 17 17 … … 32 32 33 33 namespace theplu { 34 namespace svn stat {34 namespace svndigest { 35 35 36 36 Parameter::Parameter(const int argc,const char *argv[]) … … 74 74 75 75 if (!ok) 76 throw std::runtime_error("svn stat: invalid option: " + myargv +77 "\nType 'svn stat --help' for usage.");76 throw std::runtime_error("svndigest: invalid option: " + myargv + 77 "\nType 'svndigest --help' for usage."); 78 78 } 79 79 … … 104 104 // check that root directory exists 105 105 if (stat(root_.c_str(),&buf)) 106 throw std::runtime_error("\nsvn stat: " + root_ + ": No such directory.");106 throw std::runtime_error("\nsvndigest: " + root_ + ": No such directory."); 107 107 108 108 // check that target directory exists 109 109 if (stat(targetdir_.c_str(),&buf)){ 110 throw std::runtime_error("\nsvn stat: " + targetdir_ +110 throw std::runtime_error("\nsvndigest: " + targetdir_ + 111 111 ": No such directory."); 112 112 } … … 129 129 defaults(); 130 130 std::cout << "\n" 131 << "usage: svn stat [options]\n"131 << "usage: svndigest [options]\n" 132 132 << "\n" 133 << "svn stat traverses a directory structure (controlled by\n"133 << "svndigest traverses a directory structure (controlled by\n" 134 134 << "subversion) and calculates developer statistics entries.\n" 135 135 << "The top level directory of the directory structure to\n" -
trunk/bin/Parameter.h
r116 r149 4 4 Copyright (C) 2006 Jari Häkkinen, Peter Johansson 5 5 6 This file is part of svn stat, http://lev.thep.lu.se/trac/svnstat6 This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest 7 7 8 svn stat is free software; you can redistribute it and/or modify it8 svndigest is free software; you can redistribute it and/or modify it 9 9 under the terms of the GNU General Public License as published by 10 10 the Free Software Foundation; either version 2 of the License, or 11 11 (at your option) any later version. 12 12 13 svn stat is distributed in the hope that it will be useful, but13 svndigest is distributed in the hope that it will be useful, but 14 14 WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 16 General Public License for more details. 17 17 … … 22 22 */ 23 23 24 #ifndef _theplu_svn stat_parameter_25 #define _theplu_svn stat_parameter_24 #ifndef _theplu_svndigest_parameter_ 25 #define _theplu_svndigest_parameter_ 26 26 27 27 #include <string> 28 28 29 29 namespace theplu { 30 namespace svn stat {30 namespace svndigest { 31 31 32 32 // class for command line options. … … 55 55 }; 56 56 57 }} // of namespace svn stat and namespace theplu57 }} // of namespace svndigest and namespace theplu 58 58 59 59 #endif -
trunk/bin/svndigest.cc
r148 r149 4 4 Copyright (C) 2006 Jari Häkkinen, Peter Johansson 5 5 6 This file is part of svn stat, http://lev.thep.lu.se/trac/svnstat6 This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest 7 7 8 svn stat is free software; you can redistribute it and/or modify it8 svndigest is free software; you can redistribute it and/or modify it 9 9 under the terms of the GNU General Public License as published by 10 10 the Free Software Foundation; either version 2 of the License, or 11 11 (at your option) any later version. 12 12 13 svn stat is distributed in the hope that it will be useful, but13 svndigest is distributed in the hope that it will be useful, but 14 14 WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU … … 41 41 int main(const int argc,const char* argv[]) 42 42 { 43 using namespace theplu::svn stat;43 using namespace theplu::svndigest; 44 44 Parameter* option=NULL; 45 45 try { … … 57 57 } 58 58 catch (SVNException e) { 59 std::cerr << "\nsvn stat: " << e.what() << "\nsvnstat: " << option->root()59 std::cerr << "\nsvndigest: " << e.what() << "\nsvndigest: " << option->root() 60 60 << " is not under subversion control\n" << std::endl; 61 61 exit(-1); … … 68 68 } 69 69 catch (SVNException e) { 70 std::cerr << "\nsvn stat: " << e.what()71 << "\nsvn stat: Failed to determine repository for "70 std::cerr << "\nsvndigest: " << e.what() 71 << "\nsvndigest: Failed to determine repository for " 72 72 << option->root() << '\n' << std::endl; 73 73 exit(-1); … … 81 81 } 82 82 catch (SVNException e) { 83 std::cerr << "\nsvn stat: " << e.what() << std::endl;83 std::cerr << "\nsvndigest: " << e.what() << std::endl; 84 84 exit(-1); 85 85 } … … 98 98 else { 99 99 // force false -> exit 100 std::cerr << "\nsvn stat: " << root_path << ": directory already exists"100 std::cerr << "\nsvndigest: " << root_path << ": directory already exists" 101 101 << std::endl; 102 102 exit(-1); … … 115 115 } 116 116 catch (const std::runtime_error& x) { 117 std::cerr << "svn stat: " << x.what() << std::endl;117 std::cerr << "svndigest: " << x.what() << std::endl; 118 118 } 119 std::string css(file_name(option->root())+"/svn stat.css");119 std::string css(file_name(option->root())+"/svndigest.css"); 120 120 std::ofstream os(css.c_str()); 121 121 print_css(os);
Note: See TracChangeset
for help on using the changeset viewer.