mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Some potential fixes for better cross platform builds.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@237 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
db9bf40124
commit
375a0b5c5e
8 changed files with 16 additions and 16 deletions
6
Rakefile
6
Rakefile
|
@ -80,7 +80,7 @@ end
|
||||||
task :install do
|
task :install do
|
||||||
sub_project("gem_plugin", :install)
|
sub_project("gem_plugin", :install)
|
||||||
sh %{rake package}
|
sh %{rake package}
|
||||||
sh %{sudo gem install pkg/mongrel-#{version}}
|
sh %{gem install pkg/mongrel-#{version}}
|
||||||
sub_project("mongrel_status", :install)
|
sub_project("mongrel_status", :install)
|
||||||
sub_project("mongrel_config", :install)
|
sub_project("mongrel_config", :install)
|
||||||
sub_project("mongrel_console", :install)
|
sub_project("mongrel_console", :install)
|
||||||
|
@ -90,14 +90,14 @@ task :uninstall => [:clean] do
|
||||||
sub_project("mongrel_status", :uninstall)
|
sub_project("mongrel_status", :uninstall)
|
||||||
sub_project("mongrel_config", :uninstall)
|
sub_project("mongrel_config", :uninstall)
|
||||||
sub_project("mongrel_console", :uninstall)
|
sub_project("mongrel_console", :uninstall)
|
||||||
sh %{sudo gem uninstall mongrel}
|
sh %{gem uninstall mongrel}
|
||||||
sub_project("gem_plugin", :uninstall)
|
sub_project("gem_plugin", :uninstall)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
task :gem_source do
|
task :gem_source do
|
||||||
mkdir_p "pkg/gems"
|
mkdir_p "pkg/gems"
|
||||||
|
|
||||||
FileList["**/*.gem"].each { |gem| mv gem, "pkg/gems" }
|
FileList["**/*.gem"].each { |gem| mv gem, "pkg/gems" }
|
||||||
FileList["pkg/*.tgz"].each {|tgz| rm tgz }
|
FileList["pkg/*.tgz"].each {|tgz| rm tgz }
|
||||||
rm_rf "pkg/#{name}-#{version}"
|
rm_rf "pkg/#{name}-#{version}"
|
||||||
|
|
|
@ -29,11 +29,11 @@ setup_gem(name, version) do |spec|
|
||||||
end
|
end
|
||||||
|
|
||||||
task :install => [:test, :package] do
|
task :install => [:test, :package] do
|
||||||
sh %{sudo gem install pkg/#{name}-#{version}}
|
sh %{gem install pkg/#{name}-#{version}}
|
||||||
end
|
end
|
||||||
|
|
||||||
task :uninstall => [:clean] do
|
task :uninstall => [:clean] do
|
||||||
sh %{sudo gem uninstall #{name}}
|
sh %{gem uninstall #{name}}
|
||||||
end
|
end
|
||||||
|
|
||||||
task :site => [:rerdoc] do
|
task :site => [:rerdoc] do
|
||||||
|
|
|
@ -30,10 +30,10 @@ setup_gem(name, version) do |spec|
|
||||||
end
|
end
|
||||||
|
|
||||||
task :install => [:test, :package] do
|
task :install => [:test, :package] do
|
||||||
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
sh %{gem install pkg/#{name}-#{version}.gem}
|
||||||
end
|
end
|
||||||
|
|
||||||
task :uninstall => [:clean] do
|
task :uninstall => [:clean] do
|
||||||
sh %{sudo gem uninstall #{name}}
|
sh %{gem uninstall #{name}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -29,10 +29,10 @@ end
|
||||||
|
|
||||||
|
|
||||||
task :install => [:test, :package] do
|
task :install => [:test, :package] do
|
||||||
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
sh %{gem install pkg/#{name}-#{version}.gem}
|
||||||
end
|
end
|
||||||
|
|
||||||
task :uninstall => [:clean] do
|
task :uninstall => [:clean] do
|
||||||
sh %{sudo gem uninstall #{name}}
|
sh %{gem uninstall #{name}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -33,10 +33,10 @@ end
|
||||||
|
|
||||||
|
|
||||||
task :install => [:test, :package] do
|
task :install => [:test, :package] do
|
||||||
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
sh %{gem install pkg/#{name}-#{version}.gem}
|
||||||
end
|
end
|
||||||
|
|
||||||
task :uninstall => [:clean] do
|
task :uninstall => [:clean] do
|
||||||
sh %{sudo gem uninstall #{name}}
|
sh %{gem uninstall #{name}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,9 @@ setup_gem(name, version) do |spec|
|
||||||
end
|
end
|
||||||
|
|
||||||
task :install => [:test, :package] do
|
task :install => [:test, :package] do
|
||||||
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
sh %{gem install pkg/#{name}-#{version}.gem}
|
||||||
end
|
end
|
||||||
|
|
||||||
task :uninstall => [:clean] do
|
task :uninstall => [:clean] do
|
||||||
sh %{sudo gem uninstall #{name}}
|
sh %{gem uninstall #{name}}
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,10 +29,10 @@ end
|
||||||
|
|
||||||
|
|
||||||
task :install => [:test, :package] do
|
task :install => [:test, :package] do
|
||||||
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
sh %{gem install pkg/#{name}-#{version}.gem}
|
||||||
end
|
end
|
||||||
|
|
||||||
task :uninstall => [:clean] do
|
task :uninstall => [:clean] do
|
||||||
sh %{sudo gem uninstall #{name}}
|
sh %{gem uninstall #{name}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -111,5 +111,5 @@ begin
|
||||||
t.rcov_opts << "-x /usr"
|
t.rcov_opts << "-x /usr"
|
||||||
t.output_dir = "test/coverage"
|
t.output_dir = "test/coverage"
|
||||||
end
|
end
|
||||||
rescue
|
rescue Object
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue