rust-raspberrypi-OS-tutorials/utils/make_all.rb

17 lines
298 B
Ruby
Raw Normal View History

2018-04-13 20:07:30 +00:00
#!/usr/bin/env ruby
crates = Dir["**/Cargo.toml"].sort!
2018-04-13 20:07:30 +00:00
crates.each do |x|
next if x.include?('raspi3_boot')
2018-04-13 20:07:30 +00:00
x = File.dirname(x)
puts "\n\n" + x.to_s + "\n\n"
2018-04-13 20:07:30 +00:00
Dir.chdir(x) do
unless system('make')
2018-06-17 11:20:25 +00:00
puts "\n\nBuild failed!"
exit(1) # Exit with error code
end
2018-04-13 20:07:30 +00:00
end
end