voltdb: drop unnecessary loop

This commit is contained in:
Jack Nagel 2014-04-17 10:15:52 -05:00
parent c01c37278a
commit d4177280cb
2 changed files with 3 additions and 7 deletions

View file

@ -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

View file

@ -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"