about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index b38899c..eab4bf9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -87,3 +87,19 @@ task :uninstall => [:clean] do
   sh %{sudo gem uninstall mongrel}
   sub_project("gem_plugin", :uninstall)
 end
+
+
+task :gem_source => [:clean, :package] do
+  sub_project "gem_plugin", :clean, :test, :package
+  sub_project "mongrel_config", :clean, :test, :package
+  sub_project "mongrel_status", :clean, :test, :package
+
+  mkdir_p "pkg/gems"
+
+  FileList["**/*.gem"].each { |gem| mv gem, "pkg/gems" }
+  FileList["pkg/*.tgz"].each {|tgz| rm tgz }
+  rm_rf "pkg/#{name}-#{version}"
+
+  sh %{ generate_yaml_index.rb -d pkg }
+  sh %{ scp -r pkg/* #{ENV['SSH_USER']}@rubyforge.org:/var/www/gforge-projects/mongrel/releases/ }
+end