From d4177280cb8c7c137ca49e45eccf4109eda83819 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 17 Apr 2014 10:15:52 -0500 Subject: [PATCH] voltdb: drop unnecessary loop --- Formula/rubber.rb | 4 +--- Formula/voltdb.rb | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Formula/rubber.rb b/Formula/rubber.rb index 5ba73e58f8..a897e8dbc9 100644 --- a/Formula/rubber.rb +++ b/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/Formula/voltdb.rb b/Formula/voltdb.rb index ca582fafe2..012127e888 100644 --- a/Formula/voltdb.rb +++ b/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"