mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-19 15:25:29 +00:00
17 lines
274 B
Ruby
17 lines
274 B
Ruby
|
#!/usr/bin/env ruby
|
||
|
|
||
|
def sanity_checks
|
||
|
crates = Dir["**/Cargo.toml"].sort!
|
||
|
|
||
|
crates.each do |x|
|
||
|
if File.readlines(x).grep(/patch.crates-io/).size > 0
|
||
|
puts "#{x} contains patch.crates-io!"
|
||
|
exit(1)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
if __FILE__ == $0
|
||
|
sanity_checks()
|
||
|
end
|