[DRE-commits] [SCM] redmine.git branch, master-experimental, updated. debian/1.1.3-1-26-g84bef6d

Jérémy Lal kapouer at melix.org
Sun Jul 24 22:32:04 UTC 2011


The following commit has been merged in the master-experimental branch:
commit 22837a78a9f82fea8ab977f5c839304c99559ac6
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sun Jul 24 23:00:04 2011 +0200

    ruby1.8 package : /usr/bin/ruby1.8 shebang

diff --git a/debian/patches/2001_fix_shebang_interpreter.patch b/debian/patches/2001_fix_shebang_interpreter.patch
index 500250b..86b1fe9 100644
--- a/debian/patches/2001_fix_shebang_interpreter.patch
+++ b/debian/patches/2001_fix_shebang_interpreter.patch
@@ -6,7 +6,7 @@ Last-Update: 2010-01-09
 +++ b/lib/faster_csv.rb
 @@ -1,4 +1,4 @@
 -#!/usr/local/bin/ruby -w
-+#!/usr/bin/ruby -w
++#!/usr/bin/ruby1.8 -w
  
  # = faster_csv.rb -- Faster CSV Reading and Writing
  #
diff --git a/debian/rules b/debian/rules
index 5e47447..64c1798 100755
--- a/debian/rules
+++ b/debian/rules
@@ -41,3 +41,6 @@ binary-install/redmine::
 	chmod a+x debian/redmine/usr/share/redmine/vendor/gems/rubytree-0.5.2/test/test_tree.rb
 	chmod a+x debian/redmine/usr/share/redmine/vendor/gems/coderay-0.9.7/bin/coderay
 	chmod a+x debian/redmine/usr/share/redmine/vendor/gems/coderay-0.9.7/bin/coderay_stylesheet
+
+	# Replace shebang by /usr/bin/ruby1.8
+	sed -i -e 's/\#\!\/usr\/bin\/env\ ruby/\#\!\/usr\/bin\/ruby1\.8/g' `fgrep -Rl '#!/usr/bin/env ruby' debian/redmine/usr/share/redmine/*`

-- 
redmine.git



More information about the Pkg-ruby-extras-commits mailing list