You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
304 B
Ruby
17 lines
304 B
Ruby
6 years ago
|
#!/usr/bin/env ruby
|
||
|
|
||
|
crates = Dir["**/Cargo.toml"].sort!
|
||
|
|
||
|
crates.each do |x|
|
||
|
next if x.include?('raspi3_glue')
|
||
|
|
||
|
x = File.dirname(x)
|
||
|
puts "\n\n" + x.to_s + "\n\n"
|
||
|
Dir.chdir(x) do
|
||
|
unless system('make clean')
|
||
|
puts "\n\nBuild failed!"
|
||
|
exit(1) # Exit with error code
|
||
|
end
|
||
|
end
|
||
|
end
|