Author: donaldp
Date: Wed Feb 20 20:52:12 2013
New Revision: 1448396
URL: http://svn.apache.org/r1448396
Log:
Add check to verify that doc/index.textile announces the latest release
Modified:
buildr/trunk/rakelib/stage.rake
Modified: buildr/trunk/rakelib/stage.rake
URL:
http://svn.apache.org/viewvc/buildr/trunk/rakelib/stage.rake?rev=1448396&r1=1448395&r2=1448396&view=diff
==============================================================================
--- buildr/trunk/rakelib/stage.rake (original)
+++ buildr/trunk/rakelib/stage.rake Wed Feb 20 20:52:12 2013
@@ -56,6 +56,15 @@ task 'prepare' do |task, args|
puts '[x] CHANGELOG indicates most recent version and today''s date'
end.call
+ # Make sure we have a valid CHANGELOG entry for this release.
+ lambda do
+ puts 'Checking that doc/index.textile indicates most recent version and
today''s date ... '
+ expecting = "Highlights from Buildr #{spec.version}
(#{Time.now.strftime('%Y-%m-%d')})"
+ content = IO.read('doc/index.textile')
+ fail "Expecting doc/index.textile to contain #{expecting}" unless
content.include?(expecting)
+ puts '[x] doc/index.textile indicates most recent version and today''s
date'
+ end.call
+
# Need GPG to sign the packages.
lambda do
gpg_arg or fail 'Please run with gpg=<argument for gpg --local-user>'