voltdb: drop unnecessary loop
This commit is contained in:
parent
c01c37278a
commit
d4177280cb
2 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue