Mercurial > hg > soundsoftware-site
changeset 1539:22d57b0e0a77 live
OK, this script works now, but it should be using the API
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 21 May 2015 17:31:06 +0100 |
parents | 87bea4981d6d |
children | 322d7b57e5f0 |
files | extra/soundsoftware/create-repo-authormaps.rb |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/soundsoftware/create-repo-authormaps.rb Thu May 21 16:59:41 2015 +0100 +++ b/extra/soundsoftware/create-repo-authormaps.rb Thu May 21 17:31:06 2015 +0100 @@ -73,6 +73,7 @@ next unless proj.respond_to?(:repository) repo = proj.repository + next if repo.nil? or repo.url.empty? repo_url = repo.url repo_url = repo_url.gsub(/^file:\/*/, "/"); @@ -88,11 +89,11 @@ committers.each do |c| if not c =~ /[^<]+<.*@.*>/ then user = repo.find_committer_user c - authormap << "#{c}=#{u.name} <#{u.mail}>\n" unless u.nil? + authormap << "#{c}=#{user.name} <#{user.mail}>\n" unless user.nil? end end - File.open (File.join($out_base, "authormap_#{proj.identifier}"), "w") do |f| + File.open(File.join($out_base, "authormap_#{proj.identifier}"), "w") do |f| f.puts(authormap) end