Update utils
parent
70f82ccce4
commit
4a58672d4d
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Copyright (c) 2018-2019 Andre Richter <andre.o.richter@gmail.com>
|
||||
|
||||
require 'fileutils'
|
||||
require_relative 'helpers/tutorial_folders.rb'
|
||||
|
||||
def diff_all
|
||||
crates = tutorial_folders
|
||||
|
||||
for i in 0..(crates.length - 2)
|
||||
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
|
||||
|
||||
clean_all if $PROGRAM_NAME == __FILE__
|
Loading…
Reference in New Issue