mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-03 15:40:21 +00:00
23 lines
571 B
Ruby
Executable File
23 lines
571 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
|
#
|
|
# Copyright (c) 2018-2020 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
require 'fileutils'
|
|
require_relative 'helpers/tutorial_folders.rb'
|
|
|
|
def diff_all
|
|
crates = tutorial_folders(false)
|
|
|
|
(0..(crates.length - 2)).each do |i|
|
|
old = File.dirname(crates[i])
|
|
new = File.dirname(crates[i + 1])
|
|
puts "Diffing #{old} -> #{new}"
|
|
system("bash utils/helpers/diff_tut_folders.bash #{old} #{new}")
|
|
end
|
|
end
|
|
|
|
diff_all if $PROGRAM_NAME == __FILE__
|