Skip to content

Commit

Permalink
Automatically calculate the previous release date
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Mar 15, 2011
1 parent 6e0aa68 commit 1dbd150
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rakelib/release.rake
Expand Up @@ -18,7 +18,10 @@ namespace :release do
now = Time.now
date = now.strftime("%b %d, %Y")

prev = Time.parse BUILD_CONFIG[:release_date]
prev_date = `git log -n 1 --pretty=format:"%aD" release-#{ver}`

prev = Time.parse prev_date.strip

now_day = now.strftime("%j").to_i
prev_day = prev.strftime("%j").to_i

Expand Down

0 comments on commit 1dbd150

Please sign in to comment.