Play: use block form
This commit is contained in:
parent
ebbdf347d6
commit
d4467e89e4
1 changed files with 4 additions and 2 deletions
|
@ -8,8 +8,10 @@ class Play < Formula
|
|||
def install
|
||||
rm Dir['*.bat'] # remove windows' bat files
|
||||
libexec.install Dir['*']
|
||||
inreplace libexec+"play", "$dir/", "$dir/../libexec/"
|
||||
inreplace libexec+"play", "dir=`dirname $PRG`", "dir=`dirname $0` && dir=$dir/`dirname $PRG`"
|
||||
inreplace libexec+"play" do |s|
|
||||
s.gsub! "$dir/", "$dir/../libexec/"
|
||||
s.gsub! "dir=`dirname $PRG`", "dir=`dirname $0` && dir=$dir/`dirname $PRG`"
|
||||
end
|
||||
bin.install_symlink libexec+'play'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue