diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-17 02:55:00 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-17 12:34:49 -0700 |
commit | 382d12a414942f027ea30911294cd8c8becdf2cd (patch) | |
tree | b2c1d44a18e5ac8585a031dddd4afaaaa9b1da65 /Rakefile | |
parent | 9435ee2d5111394739b82d0f8a275deca8d505be (diff) | |
download | unicorn-382d12a414942f027ea30911294cd8c8becdf2cd.tar.gz |
No point in having those files under revision control or repeating work to generate them.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -37,3 +37,18 @@ task :ragel do raise "Failed to build C source" unless File.exist? target end end + +desc 'prints RDoc-formatted history' +task :history do + tags = `git tag -l`.split(/\n/).grep(/^v[\d\.]+$/).reverse + timefmt = '%Y-%m-%d %H:%M UTC' + tags.each do |tag| + header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/, 3) + tagger = header.split(/\n/).grep(/^tagger /).first.split(/\s/) + time = Time.at(tagger[-2].to_i).utc + puts "=== #{tag.sub(/^v/, '')} / #{time.strftime(timefmt)}" + puts "" + puts body ? body.gsub(/^/sm, " ") : " initial" + puts "" + end +end |