- replace all */ruby with /usr/bin/ruby

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=13
This commit is contained in:
Stephan Kulow 2012-07-30 10:39:30 +00:00 committed by Git OBS Bridge
parent 0d05c4d098
commit e96f0e3337
2 changed files with 7 additions and 1 deletions

View File

@ -52,6 +52,7 @@ fi
if [ -d "$buildroot" ]; then
find $buildroot -type f -perm /u+x | while read file; do
sed -i -e 's,#!/usr/local/bin/ruby,#!/usr/bin/ruby,' "$file"
# TODO: scripts in ruby/1.9.1 should call ruby1.9 for consistency
sed -i -e 's,^#!/usr/bin/env ruby,#!/usr/bin/ruby,; s,^#! *[^ ]*/ruby,#!/usr/bin/ruby,' "$file"
done
fi

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 30 10:39:16 UTC 2012 - coolo@suse.com
- replace all */ruby with /usr/bin/ruby
-------------------------------------------------------------------
Fri Jul 27 14:03:05 UTC 2012 - coolo@suse.com