mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-15 18:14:02 +00:00
23 lines
375 B
Ruby
23 lines
375 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
def make_all
|
|
crates = Dir["**/Cargo.toml"].sort!
|
|
|
|
crates.each do |x|
|
|
next if x.include?('raspi3_boot')
|
|
|
|
x = File.dirname(x)
|
|
puts "\n\n" + x.to_s + "\n\n"
|
|
Dir.chdir(x) do
|
|
unless system('make')
|
|
puts "\n\nBuild failed!"
|
|
exit(1) # Exit with error code
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
if __FILE__ == $0
|
|
make_all()
|
|
end
|