diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-21 23:25:33 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-21 23:25:33 +0200 |
commit | f8bfa06c628873c7b8ba6c7442b808063dd36cdc (patch) | |
tree | ec87b9451129d9f3be21104278675a8f385fa0d2 /tasks/svn.rake | |
parent | 6e296fe91c94c87a4bee73e1c866329cdae136f0 (diff) | |
download | zorglub-f8bfa06c628873c7b8ba6c7442b808063dd36cdc.zip zorglub-f8bfa06c628873c7b8ba6c7442b808063dd36cdc.tar.gz |
use bundler
Diffstat (limited to 'tasks/svn.rake')
-rw-r--r-- | tasks/svn.rake | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/tasks/svn.rake b/tasks/svn.rake deleted file mode 100644 index b831cbb..0000000 --- a/tasks/svn.rake +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: UTF-8 -*- -# -if HAVE_SVN - -unless PROJ.svn.root - info = %x/svn info ./ - m = %r/^Repository Root:\s+(.*)$/.match(info) - PROJ.svn.root = (m.nil? ? '' : m[1]) -end -PROJ.svn.root = File.join(PROJ.svn.root, PROJ.svn.path) unless PROJ.svn.path.empty? - -namespace :svn do - - # A prerequisites task that all other tasks depend upon - task :prereqs - - desc 'Show tags from the SVN repository' - task :show_tags => 'svn:prereqs' do |t| - tags = %x/svn list #{File.join(PROJ.svn.root, PROJ.svn.tags)}/ - tags.gsub!(%r/\/$/, '') - tags = tags.split("\n").sort {|a,b| b <=> a} - puts tags - end - - desc 'Create a new tag in the SVN repository' - task :create_tag => 'svn:prereqs' do |t| - v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z' - abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version - - svn = PROJ.svn - trunk = File.join(svn.root, svn.trunk) - tag = "%s-%s" % [PROJ.name, PROJ.version] - tag = File.join(svn.root, svn.tags, tag) - msg = "Creating tag for #{PROJ.name} version #{PROJ.version}" - - puts "Creating SVN tag '#{tag}'" - unless system "svn cp -m '#{msg}' #{trunk} #{tag}" - abort "Tag creation failed" - end - end - -end # namespace :svn - -task 'gem:release' => 'svn:create_tag' - -end # if PROJ.svn.path - -# EOF |