Changeset 149 for trunk/bin


Ignore:
Timestamp:
Aug 12, 2006, 11:11:46 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Changed svnstat to svndigest.

Location:
trunk/bin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Parameter.cc

    r122 r149  
    44  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
    55
    6   This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat
     6  This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
    77
    8   svnstat is free software; you can redistribute it and/or modify it
     8  svndigest is free software; you can redistribute it and/or modify it
    99  under the terms of the GNU General Public License as published by
    1010  the Free Software Foundation; either version 2 of the License, or
    1111  (at your option) any later version.
    1212
    13   svnstat is distributed in the hope that it will be useful, but
     13  svndigest is distributed in the hope that it will be useful, but
    1414  WITHOUT ANY WARRANTY; without even the implied warranty of
    15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    1616  General Public License for more details.
    1717
     
    3232
    3333namespace theplu {
    34 namespace svnstat {
     34namespace svndigest {
    3535
    3636  Parameter::Parameter(const int argc,const char *argv[])
     
    7474
    7575      if (!ok)
    76         throw std::runtime_error("svnstat: invalid option: " + myargv +
    77                                  "\nType 'svnstat --help' for usage.");
     76        throw std::runtime_error("svndigest: invalid option: " + myargv +
     77                                 "\nType 'svndigest --help' for usage.");
    7878    }
    7979
     
    104104    // check that root directory exists
    105105    if (stat(root_.c_str(),&buf))
    106       throw std::runtime_error("\nsvnstat: " + root_ + ": No such directory.");
     106      throw std::runtime_error("\nsvndigest: " + root_ + ": No such directory.");
    107107
    108108    // check that target directory exists
    109109    if (stat(targetdir_.c_str(),&buf)){
    110       throw std::runtime_error("\nsvnstat: " + targetdir_ +
     110      throw std::runtime_error("\nsvndigest: " + targetdir_ +
    111111                               ": No such directory.");
    112112    }
     
    129129    defaults();
    130130    std::cout << "\n"
    131               << "usage: svnstat [options]\n"
     131              << "usage: svndigest [options]\n"
    132132              << "\n"
    133               << "svnstat traverses a directory structure (controlled by\n"
     133              << "svndigest traverses a directory structure (controlled by\n"
    134134              << "subversion) and calculates developer statistics entries.\n"
    135135              << "The top level directory of the directory structure to\n"
  • trunk/bin/Parameter.h

    r116 r149  
    44  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
    55
    6   This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat
     6  This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
    77
    8   svnstat is free software; you can redistribute it and/or modify it
     8  svndigest is free software; you can redistribute it and/or modify it
    99  under the terms of the GNU General Public License as published by
    1010  the Free Software Foundation; either version 2 of the License, or
    1111  (at your option) any later version.
    1212
    13   svnstat is distributed in the hope that it will be useful, but
     13  svndigest is distributed in the hope that it will be useful, but
    1414  WITHOUT ANY WARRANTY; without even the implied warranty of
    15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    1616  General Public License for more details.
    1717
     
    2222*/
    2323
    24 #ifndef _theplu_svnstat_parameter_
    25 #define _theplu_svnstat_parameter_
     24#ifndef _theplu_svndigest_parameter_
     25#define _theplu_svndigest_parameter_
    2626
    2727#include <string>
    2828
    2929namespace theplu {
    30 namespace svnstat {
     30namespace svndigest {
    3131
    3232  // class for command line options.
     
    5555  };
    5656
    57 }} // of namespace svnstat and namespace theplu
     57}} // of namespace svndigest and namespace theplu
    5858
    5959#endif
  • trunk/bin/svndigest.cc

    r148 r149  
    44  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
    55
    6   This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat
     6  This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
    77
    8   svnstat is free software; you can redistribute it and/or modify it
     8  svndigest is free software; you can redistribute it and/or modify it
    99  under the terms of the GNU General Public License as published by
    1010  the Free Software Foundation; either version 2 of the License, or
    1111  (at your option) any later version.
    1212
    13   svnstat is distributed in the hope that it will be useful, but
     13  svndigest is distributed in the hope that it will be useful, but
    1414  WITHOUT ANY WARRANTY; without even the implied warranty of
    1515  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     
    4141int main(const int argc,const char* argv[])
    4242{
    43   using namespace theplu::svnstat;
     43  using namespace theplu::svndigest;
    4444  Parameter* option=NULL;
    4545  try {
     
    5757  }
    5858  catch (SVNException e) {
    59     std::cerr << "\nsvnstat: " << e.what() << "\nsvnstat: " << option->root()
     59    std::cerr << "\nsvndigest: " << e.what() << "\nsvndigest: " << option->root()
    6060              << " is not under subversion control\n" << std::endl;
    6161    exit(-1);
     
    6868  }
    6969  catch (SVNException e) {
    70     std::cerr << "\nsvnstat: " << e.what()
    71               << "\nsvnstat: Failed to determine repository for "
     70    std::cerr << "\nsvndigest: " << e.what()
     71              << "\nsvndigest: Failed to determine repository for "
    7272              << option->root() << '\n' << std::endl;
    7373    exit(-1);
     
    8181  }
    8282  catch (SVNException e) {
    83     std::cerr << "\nsvnstat: " << e.what() << std::endl;
     83    std::cerr << "\nsvndigest: " << e.what() << std::endl;
    8484    exit(-1);
    8585  }
     
    9898    else {
    9999      // force false -> exit
    100       std::cerr << "\nsvnstat: " << root_path << ": directory already exists"
     100      std::cerr << "\nsvndigest: " << root_path << ": directory already exists"
    101101                << std::endl;
    102102      exit(-1);
     
    115115  }
    116116  catch (const std::runtime_error& x) {
    117     std::cerr << "svnstat: " << x.what() << std::endl;
     117    std::cerr << "svndigest: " << x.what() << std::endl;
    118118  }
    119   std::string css(file_name(option->root())+"/svnstat.css");
     119  std::string css(file_name(option->root())+"/svndigest.css");
    120120  std::ofstream os(css.c_str());
    121121  print_css(os);
Note: See TracChangeset for help on using the changeset viewer.