about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-02-22 17:10:19 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-02-22 17:10:19 +0000
commitc9dd16ed840b34ffebbeb321db02ac242016a630 (patch)
treec1d5dd7187f2af3f2ce6d320523c80ad49e057f7
parent985bb4dd71f6a77a5f3855b677a978c04e69f613 (diff)
downloadunicorn-c9dd16ed840b34ffebbeb321db02ac242016a630.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@56 19e92222-5c0b-0410-8929-a290d50e31e9
-rw-r--r--Rakefile8
-rw-r--r--bin/mongrel_rails_service (renamed from examples/mongrel_rails_service.rb)4
-rw-r--r--bin/mongrel_rails_svc (renamed from examples/mongrel_rails_svc.rb)2
3 files changed, 8 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index dd8cd63..45e49fb 100644
--- a/Rakefile
+++ b/Rakefile
@@ -37,15 +37,17 @@ author="Zed A. Shaw"
 name="mongrel"
 scripts=['mongrel_rails']
 
-setup_gem(name, version,  author, summary, ['mongrel_rails'], test_file) do |spec|
+setup_gem(name, version,  author, summary, scripts, test_file) do |spec|
   spec.add_dependency('daemons', '>= 0.4.2')
 end
 
 desc "Build a binary gem for Win32"
-task :win32_gem => [:clean, :compile, :test, :package_win32]
+task :win32_gem => [:clean, :compile, :test, :rerdoc, :package_win32]
 
+scripts_win32 = scripts + ['mongrel_rails_service','mongrel_rails_svc']
 task :package_win32 do
-  setup_win32_gem(name, version,  version, summary, scripts, test_file) do |spec|
+  setup_win32_gem(name, version,  version, summary, scripts_win32, test_file) do |spec|
+    spec.add_dependency('win32-service', '>= 0.5.0')
     spec.files << 'ext/http11/http11.so'
     spec.extensions = []
     spec.platform = Gem::Platform::WIN32
diff --git a/examples/mongrel_rails_service.rb b/bin/mongrel_rails_service
index a0c4454..5478de1 100644
--- a/examples/mongrel_rails_service.rb
+++ b/bin/mongrel_rails_service
@@ -1,5 +1,5 @@
 ###############################################
-# mongrel_rails_service.rb
+# mongrel_rails_service
 #
 # Control script for Rails powered by Mongrel
 #
@@ -123,7 +123,7 @@ class InstallCommand < Mongrel::Command::Command
     binary_path << '"' << Config::CONFIG['bindir'] << '/ruby.exe' << '" '
     
     # add service_script
-    service_script = File.expand_path(File.dirname(__FILE__) + '/mongrel_rails_svc.rb')
+    service_script = File.expand_path(File.dirname(__FILE__) + '/mongrel_rails_svc')
     binary_path << '"' << service_script << '" '
     
     # now add the parameters to it.
diff --git a/examples/mongrel_rails_svc.rb b/bin/mongrel_rails_svc
index 1ce8781..0b270c9 100644
--- a/examples/mongrel_rails_svc.rb
+++ b/bin/mongrel_rails_svc
@@ -1,5 +1,5 @@
 ###############################################
-# mongrel_rails_svc.rb
+# mongrel_rails_svc
 #
 # This is where Win32::Daemon resides.
 ###############################################