Rakefile in slf4j-1.5.5.1 vs Rakefile in slf4j-1.5.6.1

- old
+ new

@@ -30,11 +30,10 @@ ENV['NODOT'] = "no thank you" # Instead of 'slf4j' to avoid loading slf4j-api in Rake parent loader require 'slf4j/base' -SLF4J = SLF4JBase loaders = SLF4J::ADAPTERS.flatten.compact loader_files = loaders.map { |adp| "lib/slf4j/#{adp}.rb" } jars = [ 'slf4j-api' ] @@ -94,9 +93,27 @@ rm_f( jar_files ) rm_f( loader_files ) sh( 'mvn clean' ) end task :clean => :mvn_clean + +task :tag do + tag = "slf4j-#{SLF4J::VERSION}" + svn_base = 'svn://localhost/subversion.repo/src/gems' + tag_url = "#{svn_base}/tags/#{tag}" + + dname = File.dirname( __FILE__ ) + dname = '.' if Dir.getwd == dname + stat = `svn status #{dname}` + stat.strip! if stat + if ( stat && stat.length > 0 ) + $stderr.puts( "Resolve the following before tagging (svn status):" ) + $stderr.puts( stat ) + else + sh( "svn cp -m 'tag [#{tag}]' #{dname} #{tag_url}" ) + end +end + hoe = Hoe.new( "slf4j", SLF4J::VERSION ) do |p| p.developer( "David Kellum", "dek-ruby@gravitext.com" ) p.rubyforge_name = "rjack" p.rdoc_pattern = /^(lib.*\.(rb|txt))|[^\/]*\.txt$/