Accepting request 281049 from home:dirkmueller:branches:devel:languages:ruby

- gem_install.sh: fix ruby shebang patching

OBS-URL: https://build.opensuse.org/request/show/281049
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=81
This commit is contained in:
Marcus Rückert 2015-01-14 10:41:22 +00:00 committed by Git OBS Bridge
parent 783503d08e
commit e9e080dd40
3 changed files with 7 additions and 2 deletions

View File

@ -119,7 +119,7 @@ for gem in $gem_binary ; do
if [ -d "$buildroot" ]; then
find ${buildroot}${gemdir} -type f -perm /u+x | while read file; do
# TODO: scripts in ruby/1.9.1 should call ruby1.9 for consistency
perl -p -i -e "s,^#!/usr/bin/env ruby,#!/usr/bin/ruby,; s,^#! *[^ ]*/ruby\S\+,#!/usr/bin/ruby$ruby," "$file"
perl -p -i -e "s,^#!/usr/bin/env ruby,#!/usr/bin/ruby,; s,^#! *[^ ]*/ruby\S*,#!/usr/bin/ruby$ruby," "$file"
done
# some windows made gems are broken
find $buildroot -ls

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 13 17:01:02 UTC 2015 - dmueller@suse.com
- gem_install.sh: fix ruby shebang patching
-------------------------------------------------------------------
Sat Nov 15 23:46:00 UTC 2014 - Led <ledest@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package ruby-common
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed