From 892737dc7c7006109f4fb025f0c7fa03d54c34fd Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 21 Jul 2009 23:06:52 -0700 Subject: [PATCH] Improve `rip build` output --- lib/rip/commands/build.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/rip/commands/build.rb b/lib/rip/commands/build.rb index 1ae933c..60aa1c7 100644 --- a/lib/rip/commands/build.rb +++ b/lib/rip/commands/build.rb @@ -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