Changeset 1067
- Timestamp:
- Jun 6, 2010, 4:40:30 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svncopyright.cc
r1060 r1067 22 22 #include "svncopyrightParameter.h" 23 23 24 #include "main_utility.h" 25 24 26 #include <cassert> 25 27 #include <iostream> … … 42 44 return EXIT_FAILURE; 43 45 } 46 47 try { 48 load_config(option.config_file()); 49 } 50 catch (std::runtime_error& e) { 51 std::cerr << "svncopyright: " << e.what() << "\n"; 52 return EXIT_FAILURE; 53 } 54 44 55 return EXIT_SUCCESS; // normal exit 45 56 } 46 -
trunk/bin/svndigest.cc
r1060 r1067 29 29 #include "Graph.h" 30 30 #include "html_utility.h" 31 #include "main_utility.h" 31 32 #include "rmdirhier.h" 32 33 #include "Stats.h" … … 70 71 } 71 72 72 // Reading configuration file 73 try { 74 load_config(option->config_file()); 75 } 76 catch (std::runtime_error& e) { 77 std::cerr << "svndigest: " << e.what() << "\n"; 78 return EXIT_FAILURE; 79 } 80 81 // just for convenience 73 82 Configuration& config = Configuration::instance(); 74 if (node_exist(option->config_file())) {75 std::ifstream is(option->config_file().c_str());76 if (!is.good()){77 is.close();78 std::cerr << "\nsvndigest: Cannot open config file "79 << option->config_file() << std::endl;80 exit(EXIT_FAILURE);81 }82 try {83 config.load(is);84 }85 catch (std::runtime_error& e) {86 std::cerr << "svndigest: invalid config file\n"87 << e.what() << std::endl;88 exit(EXIT_FAILURE);89 }90 is.close();91 }92 93 // just for convenience94 Configuration& conf = Configuration::instance();95 83 // set values from commandline into config object 96 84 try { … … 108 96 try { 109 97 if (option->anchor_format().present()) 110 conf .image_anchor_format(option->anchor_format().value());98 config.image_anchor_format(option->anchor_format().value()); 111 99 } 112 100 catch (std::runtime_error& e) { -
trunk/lib/Makefile.am
r978 r1067 37 37 Graph.h \ 38 38 HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \ 39 Node.h \39 main_utility.h Node.h \ 40 40 OptionVersion.h rmdirhier.h \ 41 41 Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h \ … … 47 47 css.cc Date.cc Directory.cc File.cc first_page.cc\ 48 48 Functor.cc Graph.cc HtmlBuf.cc HtmlStream.cc \ 49 html_utility.cc LineTypeParser.cc Node.cc \49 html_utility.cc LineTypeParser.cc main_utility.cc Node.cc \ 50 50 OptionVersion.cc \ 51 51 rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \
Note: See TracChangeset
for help on using the changeset viewer.