diff options
| author | Adam Vandenberg | 2012-03-15 19:48:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-15 19:48:40 -0700 |
| commit | 29e0340bf3d8d10c3b6211bb7ab3a27cce8f5fbc (patch) | |
| tree | 5ba2d12afcf712a75aab804c6dd2943604a5a6e1 /Library/Formula | |
| parent | 9f6f961720021d08cf2a2d1acda6bed09fc3db5b (diff) | |
| download | homebrew-29e0340bf3d8d10c3b6211bb7ab3a27cce8f5fbc.tar.bz2 | |
Play: use block form
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/play.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/play.rb b/Library/Formula/play.rb index 214cb1dbf..761ec0830 100644 --- a/Library/Formula/play.rb +++ b/Library/Formula/play.rb @@ -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
\ No newline at end of file |
