Rakefile: use last commit date in schematic and layout
This commit is contained in:
parent
f9db55110c
commit
8a6831465d
2
Rakefile
2
Rakefile
|
@ -10,6 +10,7 @@ require 'open_uri_redirections' # allow redirections
|
|||
require 'net/http' # to get sites
|
||||
require 'nokogiri' # to parse sites
|
||||
require 'json' # to parse get site responses
|
||||
require 'date' # to parse dates
|
||||
|
||||
# =================
|
||||
# project variables
|
||||
|
@ -38,6 +39,7 @@ names.each do |name|
|
|||
rev = `git log --pretty=oneline "#{sch}" "#{pcb}" | wc -l`.chomp.to_i
|
||||
sch_rev = rev
|
||||
pcb_rev = rev
|
||||
date = Date.parse(`git log -1 --format=%cd "#{sch}" "#{pcb}"`)
|
||||
# get schematic and layout revision numbers, based on the respective number of commits
|
||||
# this allows to have independent number in case an edit in one does not affect the other, but you need to keep track of which revision numbers correspond
|
||||
#sch_rev = `git log --pretty=oneline "#{sch}" | wc -l`.chomp.to_i
|
||||
|
|
Loading…
Reference in New Issue