add file verifications
This commit is contained in:
parent
cac93a9351
commit
7ca9fd345a
6
Rakefile
6
Rakefile
|
@ -5,13 +5,15 @@ require 'rake/clean'
|
||||||
# =================
|
# =================
|
||||||
|
|
||||||
# main name used if filename
|
# main name used if filename
|
||||||
target = IO.read("name").chomp
|
target = IO.read("name").split("\n")[0]
|
||||||
|
raise "define project name in 'name' file" unless target
|
||||||
# schema
|
# schema
|
||||||
sch = "#{target}.sch"
|
sch = "#{target}.sch"
|
||||||
# pcb layout
|
# pcb layout
|
||||||
pcb = "#{target}.pcb"
|
pcb = "#{target}.pcb"
|
||||||
# project version, read from "version" file
|
# project version, read from "version" file
|
||||||
version = IO.read("version").chomp
|
version = IO.read("version").split("\n")[0]
|
||||||
|
raise "define project version in 'version' file" unless version
|
||||||
# current date for stamping output
|
# current date for stamping output
|
||||||
date = Time.now.strftime("%Y-%m-%d")
|
date = Time.now.strftime("%Y-%m-%d")
|
||||||
# schematic revision, based on the number of schematic commits)
|
# schematic revision, based on the number of schematic commits)
|
||||||
|
|
Loading…
Reference in New Issue