diff options
| author | Jack Nagel | 2014-04-17 10:15:52 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-17 10:15:52 -0500 |
| commit | 0050ba3fb9deb43a9ba57bf906cb48a958c74a4c (patch) | |
| tree | 75e40c1eacbdf85e23c964fdb2fbe4b0117ac73d /Library | |
| parent | 0ddc2f68c6b623c84a911e5066cf20e13e30be49 (diff) | |
| download | homebrew-0050ba3fb9deb43a9ba57bf906cb48a958c74a4c.tar.bz2 | |
voltdb: drop unnecessary loop
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rubber.rb | 4 | ||||
| -rw-r--r-- | Library/Formula/voltdb.rb | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/Library/Formula/rubber.rb b/Library/Formula/rubber.rb index 5ba73e58f..a897e8dbc 100644 --- a/Library/Formula/rubber.rb +++ b/Library/Formula/rubber.rb @@ -21,8 +21,6 @@ class Rubber < Formula system "make install" # Don't need to peg to a specific Python version - Dir["#{bin}/*"].each do |f| - inreplace f, /^#!.*\/python.*$/, "#!/usr/bin/env python" - end + inreplace Dir["#{bin}/*"], /^#!.*\/python.*$/, "#!/usr/bin/env python" end end diff --git a/Library/Formula/voltdb.rb b/Library/Formula/voltdb.rb index ca582fafe..012127e88 100644 --- a/Library/Formula/voltdb.rb +++ b/Library/Formula/voltdb.rb @@ -11,10 +11,8 @@ class Voltdb < Formula def install system 'ant' - Dir['bin/*'].each do |f| - next if ['bin/voltadmin'].include? f - inreplace f, /VOLTDB_LIB=\$VOLTDB_HOME\/lib/, 'VOLTDB_LIB=$VOLTDB_HOME/lib/voltdb' - end + inreplace Dir["bin/*"] - ["bin/voltadmin"], + /VOLTDB_LIB=\$VOLTDB_HOME\/lib/, 'VOLTDB_LIB=$VOLTDB_HOME/lib/voltdb' (lib/'voltdb').install Dir['lib/*'] lib.install_symlink lib/"voltdb/python" |
