Created
August 27, 2008 01:35
-
-
Save defunkt/7391 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
Copyright (c) 2008 Hans Engel | |
See the file LICENSE for licensing details. | |
=end | |
task :spec do | |
require 'rubygems' | |
Gem::manage_gems | |
require 'rake/gempackagetask' | |
@spec = eval(File.read('gitchart.gemspec')) | |
Rake::GemPackageTask.new(@spec) do |pkg| | |
pkg.need_tar = true | |
end | |
end | |
task :default => [ :spec, "pkg/#{@spec.name}-#{@spec.version}.gem" ] do | |
puts 'generated latest version' | |
end | |
desc "build 'n' install" | |
task :bni => [ :spec, "pkg/#{@spec.name}-#{@spec.version}.gem" ] do | |
puts `sudo gem install pkg/#{@spec.name}-#{@spec.version}.gem` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment