Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 76a88ec88b
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (28 sloc) 0.846 kB
require 'rake/clean'
require 'rake/testtask'
task :default => [:test]
Rake::TestTask.new(:test) do |t|
t.test_files = FileList['test/test_shotgun_*.rb']
t.ruby_opts = ['-rubygems'] if defined? Gem
end
desc "build manual"
task :man do
ENV['RONN_ORGANIZATION'] = "Shotgun #{SPEC.version}"
sh "ronn -5r -stoc man/*.ronn"
end
require 'rubygems'
SPEC = eval(File.read('shotgun.gemspec'))
PACK = "#{SPEC.name}-#{SPEC.version}"
desc 'build packages'
task :package => %W[pkg/#{PACK}.gem pkg/#{PACK}.tar.gz]
directory 'pkg/'
file "pkg/#{PACK}.gem" => %w[pkg/ shotgun.gemspec] + SPEC.files do |f|
sh "gem build shotgun.gemspec"
mv File.basename(f.name), f.name
end
file "pkg/#{PACK}.tar.gz" => %w[pkg/] + SPEC.files do |f|
sh <<-SH
git archive --prefix=shotgun-#{SPEC.version}/ --format=tar HEAD |
gzip > '#{f.name}'
SH
end
Jump to Line
Something went wrong with that request. Please try again.