Navigation Menu

Skip to content

Commit

Permalink
Improve rip build output
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jul 22, 2009
1 parent 5111649 commit 892737d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/rip/commands/build.rb
Expand Up @@ -7,16 +7,25 @@ module Rip
module Commands
def build(options={}, *packages)
packages.each do |package_name|
ui.puts "rip: building package: #{package_name}"
package = manager.package(package_name)
alerted = false

Dir["#{package.cache_path}/**/extconf.rb"].each do |build_file|
if !alerted
ui.puts "rip: building #{package_name}"
alerted = true
end

build_dir = File.dirname(build_file)
Dir.chdir(build_dir) do
system "ruby extconf.rb"
system "make install RUBYARCHDIR=#{manager.dir}/lib"
end
end

if !alerted
ui.puts "rip: don't know how to build #{package_name}"
end
end
end
end
Expand Down

0 comments on commit 892737d

Please sign in to comment.