Changeset 1264
- Timestamp:
- Nov 2, 2010, 1:46:21 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 22 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/0.8-stable merged: 1183,1185,1206,1244,1246-1250,1260-1262
- Property svn:mergeinfo changed
-
trunk/Makefile.am
r1182 r1264 79 79 -e 's|@VERSION[@]|$(VERSION)|g' 80 80 81 build_support/Portfile: Makefile build_support/Portfile.in $(distdir).tar.gz.MD581 build_support/Portfile: Makefile build_support/Portfile.in 82 82 @rm -f $@ $@.t 83 @md5sum=`cut -f 1 -d ' ' $(distdir).tar.gz.MD5`;\ 84 $(edit) -e "s|@MD5SUM[@]|$$md5sum|g" '$(srcdir)/$@.in' > $@.t 83 @openssl version > /dev/null || exit 1 84 @openssl sha1 $(distdir).tar.gz > $(distdir).tar.gz.sha1 85 @openssl rmd160 $(distdir).tar.gz > $(distdir).tar.gz.rmd160 86 @sha1=`cut -f 2 -d ' ' $(distdir).tar.gz.sha1`;\ 87 rmd160=`cut -f 2 -d ' ' $(distdir).tar.gz.rmd160`;\ 88 $(edit) -e "s|@SHA1SUM[@]|$$sha1|g" -e "s|@RMD160SUM[@]|$$rmd160|g" \ 89 '$(srcdir)/$@.in' > $@.t 85 90 @chmod a-w $@.t 86 91 @mv $@.t $@ -
trunk/NEWS
r1182 r1264 15 15 svndigest 0.8.x series from 16 16 http://dev.thep.lu.se/svndigest/svn/branches/0.8-stable 17 18 Version 0.8.1 (released 2 November 2010) 19 - fix bug when ROOT is symlink (ticket #477) 20 21 A complete list of closed tickets can be found here [[br]] 22 http://dev.thep.lu.se/svndigest/query?status=closed&milestone=0.8.1 17 23 18 24 Version 0.8 (released 25 August 2010) -
trunk/bin/Parameter.cc
r1241 r1264 91 91 check_readable(root_.value()); 92 92 check_is_dir(root_.value()); 93 93 94 chdir(root_.value()); 94 root_ .value(pwd());95 root_full_ = pwd(); 95 96 chdir(save_wd); 97 98 // take care of when root is a symlink (see ticket #477) 99 struct stat stats; 100 lstat(root_.value().c_str(), &stats); 101 if (S_ISLNK(stats.st_mode)) 102 root_basename_ = file_name(root_.value()); 103 else 104 root_basename_ = file_name(root_full_); 96 105 } 97 106 … … 190 199 std::string Parameter::root(void) const 191 200 { 192 return root_.value(); 193 } 201 return root_full_; 202 } 203 204 205 const std::string& Parameter::root_basename(void) const 206 { 207 assert(root_basename_.size()); 208 return root_basename_; 209 } 210 194 211 195 212 void Parameter::set_default(void) -
trunk/bin/Parameter.h
r1119 r1264 55 55 bool generate_config(void) const ; 56 56 bool ignore_cache(void) const; 57 /// @return absolute path to root directory 57 58 /** 59 @return Dereferenced absolute path to root directory 60 */ 58 61 std::string root(void) const; 62 63 /** 64 If --root argument is a link we return the file_name(argument). 65 Otherwise we return file_name(root()). See root(void). 66 67 \return basename of --root argument. 68 */ 69 const std::string& root_basename(void) const; 59 70 bool verbose(void) const; 60 71 … … 83 94 yat::utility::OptionSwitch ignore_cache_; 84 95 yat::utility::OptionArg<std::string> root_; 96 std::string root_basename_; 97 std::string root_full_; 85 98 yat::utility::OptionSwitch verbose_; 86 99 protected: -
trunk/bin/svncopyright.cc
r1234 r1264 65 65 if (option.verbose()) 66 66 std::cout << "Building directory tree" << std::endl; 67 Directory tree(0,option.root(),"" );67 Directory tree(0,option.root(),"",option.root_basename()); 68 68 69 69 update_copyright(tree, option.verbose(), option.ignore_cache()); -
trunk/bin/svndigest.cc
r1257 r1264 113 113 if (option.verbose()) 114 114 std::cout << "Building directory tree" << std::endl; 115 Directory tree(0,option.root(),"" );115 Directory tree(0,option.root(),"", option.root_basename()); 116 116 117 117 if (option.report()) … … 244 244 if (option.verbose()) 245 245 std::cout << "Generating output" << std::endl; 246 mkdir( tree.name());247 chdir( tree.name());246 mkdir(option.root_basename()); 247 chdir(option.root_basename()); 248 248 print_css("svndigest.css"); 249 249 // create structure StatsType/Author/LineType -
trunk/bin/svndigestParameter.cc
r1234 r1264 90 90 check_readable(target_.value()); 91 91 check_is_dir(target_.value()); 92 std::string base_root = file_name(root()); 93 std::string path = concatenate_path(target_.value(),base_root); 92 std::string path = concatenate_path(target_.value(),root_basename()); 94 93 if (access_rights(target_.value(), "w")) { 95 94 std::stringstream ss; -
trunk/build_support/Portfile.in
r1182 r1264 6 6 name svndigest 7 7 version @VERSION@ 8 revision 09 8 categories devel 10 9 platforms darwin 11 maintainers peter 10 maintainers gmail.com:pj31042 11 12 12 description Create statistics of a subversion repository 13 long_description svndigest is a tool to extract development \ 14 information and statistics from a subversion repository. Svndigest is \ 15 written in C++ and\ extracts repository history using the subversion \ 16 API. The resulting\ report is written to a user specifiable directory 17 in HTML format. 13 14 long_description ${name} is a tool to extract development information and \ 15 statistics from a subversion repository. Svndigest is \ 16 written in C++ and extracts repository history using the \ 17 Subversion API. The resulting report is written to a user \ 18 specifiable directory in HTML format. 18 19 19 20 homepage @PACKAGE_URL@ 20 21 master_sites sourceforge 21 checksums md5 @MD5SUM@ 22 23 checksums sha1 @SHA1SUM@ \ 24 rmd160 @RMD160SUM@ 25 26 depends_build port:pkgconfig 27 28 depends_lib port:subversion \ 29 port:apr \ 30 port:plplot 31 32 use_parallel_build yes 22 33 23 34 test.run yes 24 35 test.target check 25 26 depends_lib port:subversion port:apr port:plplot27 28 use_parallel_build yes -
trunk/lib/Directory.cc
r1238 r1264 52 52 53 53 Directory::Directory(const unsigned int level, const std::string& path, 54 const std::string& output )55 : Node(level,path,output )54 const std::string& output, const std::string& project) 55 : Node(level,path,output,project) 56 56 { 57 57 output_dir_=local_path(); -
trunk/lib/Directory.h
r1238 r1264 6 6 /* 7 7 Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2009 Peter Johansson8 Copyright (C) 2009, 2010 Peter Johansson 9 9 10 10 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 54 54 /// 55 55 Directory(const unsigned int level, const std::string& path, 56 const std::string& output="" );56 const std::string& output="", const std::string& project=""); 57 57 58 58 /// -
trunk/lib/Node.cc
r1256 r1264 3 3 /* 4 4 Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 5 Copyright (C) 2009 Peter Johansson5 Copyright (C) 2009, 2010 Peter Johansson 6 6 7 7 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 48 48 49 49 Node::Node(const unsigned int level, const std::string& path, 50 const std::string& local_path )50 const std::string& local_path, const std::string& project) 51 51 : level_(level), path_(path), stats_(path), log_(NULL), 52 52 svninfo_(path) … … 57 57 svncopyright_ignore_=property.svncopyright_ignore(); 58 58 if (Node::project_==std::string()) // no root directory in local path 59 Node::project_ = file_name(path);59 Node::project_ = project; 60 60 else if (local_path.empty()) 61 61 local_path_ = file_name(path); -
trunk/lib/Node.h
r1238 r1264 7 7 Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 8 8 Copyright (C) 2009 Peter Johansson 9 Copyright (C) 2010 Jari Häkkinen 9 Copyright (C) 2010 Jari Häkkinen, Peter Johansson 10 10 11 11 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 61 61 /// @brief Constructor 62 62 /// 63 Node(const unsigned int, const std::string&, const std::string&); 63 Node(const unsigned int, const std::string&, const std::string&, 64 const std::string& = ""); 64 65 65 66 /// -
trunk/m4/apache_LICENSE-2.0.txt
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/m4/ax_cxx_check_flag.m4
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/m4/ax_cxxcpp_check_flag.m4
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/m4/ax_ld_check_flag.m4
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/m4/find_apr.m4
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/m4/pkg.m4
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/m4/version.m4
- Property svn:mergeinfo changed
/branches/0.8-stable/m4/version.m4 (added) merged: 1179,1183,1260
- Property svn:mergeinfo changed
-
trunk/m4/yat_add_flag.m4
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/test/Makefile.am
r1220 r1264 28 28 EXTRA_PROGRAMS = cache_partial.test color.test \ 29 29 config.test copyright.test date.test \ 30 graph.test htmlstream.test \30 graph.test htmlstream.test parameter_test \ 31 31 parser.test stats.test svn_diff.test trac.test utility.test \ 32 32 vector.test 33 33 34 34 CLEANFILES = $(EXTRA_PROGRAMS) 35 36 parameter_test_SOURCES = parameter_test.cc $(top_srcdir)/bin/Parameter.cc \ 37 $(top_srcdir)/bin/svndigestParameter.cc 35 38 36 39 distributed_TESTS = … … 40 43 distributed_TESTS += copyright2_test.sh 41 44 distributed_TESTS += error_test.sh 45 distributed_TESTS += link_root_test.sh 42 46 distributed_TESTS += repo_status_test.sh 43 47 distributed_TESTS += repo_test.sh
Note: See TracChangeset
for help on using the changeset viewer.