summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/mail_handler/rdm-mailhandler.rb2
-rwxr-xr-xextra/svn/reposman.rb2
-rwxr-xr-xpublic/dispatch.cgi.example2
-rwxr-xr-xpublic/dispatch.fcgi.example2
-rwxr-xr-xpublic/dispatch.rb.example2
5 files changed, 5 insertions, 5 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb
index 0f8020c76..cbf13eb04 100644
--- a/extra/mail_handler/rdm-mailhandler.rb
+++ b/extra/mail_handler/rdm-mailhandler.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# == Synopsis
#
diff --git a/extra/svn/reposman.rb b/extra/svn/reposman.rb
index b7aa2a462..46cc82cee 100755
--- a/extra/svn/reposman.rb
+++ b/extra/svn/reposman.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# == Synopsis
#
diff --git a/public/dispatch.cgi.example b/public/dispatch.cgi.example
index 9730473f2..ce705d36e 100755
--- a/public/dispatch.cgi.example
+++ b/public/dispatch.cgi.example
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
diff --git a/public/dispatch.fcgi.example b/public/dispatch.fcgi.example
index f934b3002..664dbbbee 100755
--- a/public/dispatch.fcgi.example
+++ b/public/dispatch.fcgi.example
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging)
diff --git a/public/dispatch.rb.example b/public/dispatch.rb.example
index 9730473f2..ce705d36e 100755
--- a/public/dispatch.rb.example
+++ b/public/dispatch.rb.example
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)