Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 40 lines (31 sloc) 0.729 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
=begin
exec_make.rb is called by top-level Makefile.

$Id: exec_make.rb,v 1.3 2004/03/14 01:49:34 mutoh Exp $

Copyright (C) 2003 Ruby-GNOME2 Project Team
=end

SUBDIRS = ARGV[0].split(" ")
EXECUTE = ARGV[1..-1].join(' ')

success = []
failure = []
SUBDIRS.each do |subdir|
Dir.chdir(subdir)
begin
ret = system(EXECUTE)
ensure
Dir.chdir("..")
end

if ret
success << subdir
else
failure << subdir
end
end

success << "NONE" if success.size == 0
failure << "NONE" if failure.size == 0

puts "\n"
puts "-----"
puts "SUCCEEDED: #{success.join(' ')}" if success.size > 0
puts "FAILED: #{failure.join(' ')}" if failure.size > 0
puts "-----"
puts "Done."

exit(1) if failure.select { |x| x != "NONE" }.length > 0
Something went wrong with that request. Please try again.