Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (39 sloc) 0.864 kB
=begin
exec_make.rb is called by top-level Makefile.
$Id: exec_make.rb,v 1.5 2005/01/31 10:34:33 mutoh Exp $
Copyright (C) 2003-2005 Ruby-GNOME2 Project Team
=end
argv = ARGV
strict = false
if ARGV[0] == "--strict" || ARGV[0] == "-s"
strict = true
argv = ARGV[1..-1]
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."
if strict && (failure.select { |x| x != "NONE" }.length > 0)
exit(1)
end
Jump to Line
Something went wrong with that request. Please try again.