now embeds symbols

This commit is contained in:
King Kévin 2014-04-06 12:23:25 +02:00
parent 36a0b2f4b7
commit 639c3042cc
1 changed files with 2 additions and 0 deletions

View File

@ -299,7 +299,9 @@ end
desc "copy schematic to version it: include version, revision, and date"
targets.each do |target|
file target[:vsch] => target[:sch] do |t|
# embed symbols
sh "cp #{t.prerequisites.join(' ')} #{t.name}"
sh "gschlas -e #{t.name}"
# on \ is to prevent ruby interpreting it, th other is for sed
# the version
sh "sed -i 's/\\(version=\\)\\$Version\\$/\\1#{version}/' #{t.name}"