提交 107afe4f 编写于 作者: C Chris Wanstrath

Update Rakefile

上级 673527eb
...@@ -78,14 +78,6 @@ task :standalone => :load_hub do ...@@ -78,14 +78,6 @@ task :standalone => :load_hub do
Hub::Standalone.save('hub') Hub::Standalone.save('hub')
end end
begin
require 'mg'
MG.new('git-hub.gemspec')
rescue LoadError
warn "mg not available."
warn "Install it with: gem install mg"
end
desc "Install standalone script and man pages" desc "Install standalone script and man pages"
task :install => :standalone do task :install => :standalone do
prefix = ENV['PREFIX'] || ENV['prefix'] || '/usr/local' prefix = ENV['PREFIX'] || ENV['prefix'] || '/usr/local'
...@@ -97,16 +89,6 @@ task :install => :standalone do ...@@ -97,16 +89,6 @@ task :install => :standalone do
FileUtils.cp "man/hub.1", "#{prefix}/share/man/man1" FileUtils.cp "man/hub.1", "#{prefix}/share/man/man1"
end end
desc "Push a new version."
task :publish => "gem:publish" do
require 'hub/version'
system "git tag v#{Hub::Version}"
sh "git push origin v#{Hub::Version}"
sh "git push origin master"
sh "git clean -fd"
exec "rake pages"
end
desc "Publish to GitHub Pages" desc "Publish to GitHub Pages"
task :pages => [ "man:build", :check_dirty, :standalone ] do task :pages => [ "man:build", :check_dirty, :standalone ] do
cp "man/hub.1.html", "html" cp "man/hub.1.html", "html"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册