Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (28 sloc) 0.846 kB
d8cc3fd @rtomayko README, gemspec, and Rakefile
authored
1 require 'rake/clean'
2 require 'rake/testtask'
3
4 task :default => [:test]
5
6 Rake::TestTask.new(:test) do |t|
d29222e @rtomayko move tests around a bit
authored
7 t.test_files = FileList['test/test_shotgun_*.rb']
d8cc3fd @rtomayko README, gemspec, and Rakefile
authored
8 t.ruby_opts = ['-rubygems'] if defined? Gem
9 end
10
e419ece @rtomayko rake man
authored
11 desc "build manual"
12 task :man do
76a88ec @rtomayko 0.7 release
authored
13 ENV['RONN_ORGANIZATION'] = "Shotgun #{SPEC.version}"
e419ece @rtomayko rake man
authored
14 sh "ronn -5r -stoc man/*.ronn"
15 end
16
c0e4c5e @rtomayko what is all that mess
authored
17 require 'rubygems'
18 SPEC = eval(File.read('shotgun.gemspec'))
19 PACK = "#{SPEC.name}-#{SPEC.version}"
b2cbe44 @rtomayko gem packaging tasks only available when Gem is defined
authored
20
c0e4c5e @rtomayko what is all that mess
authored
21 desc 'build packages'
22 task :package => %W[pkg/#{PACK}.gem pkg/#{PACK}.tar.gz]
b2cbe44 @rtomayko gem packaging tasks only available when Gem is defined
authored
23
c0e4c5e @rtomayko what is all that mess
authored
24 directory 'pkg/'
b2cbe44 @rtomayko gem packaging tasks only available when Gem is defined
authored
25
c0e4c5e @rtomayko what is all that mess
authored
26 file "pkg/#{PACK}.gem" => %w[pkg/ shotgun.gemspec] + SPEC.files do |f|
27 sh "gem build shotgun.gemspec"
28 mv File.basename(f.name), f.name
29 end
b2cbe44 @rtomayko gem packaging tasks only available when Gem is defined
authored
30
c0e4c5e @rtomayko what is all that mess
authored
31 file "pkg/#{PACK}.tar.gz" => %w[pkg/] + SPEC.files do |f|
32 sh <<-SH
33 git archive --prefix=shotgun-#{SPEC.version}/ --format=tar HEAD |
34 gzip > '#{f.name}'
35 SH
d8cc3fd @rtomayko README, gemspec, and Rakefile
authored
36 end
Something went wrong with that request. Please try again.