Merge remote-tracking branch 'hw-template/master'

This commit is contained in:
King Kévin 2014-04-06 12:23:48 +02:00
commit ec35575960
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}"