Altera_Forum
Honored Contributor
15 years agoHow do I get this tcl script to run?
Hey again :)
Within the link (http://www.altera.com/support/examples/tcl/tcl-increment-version.html), this code is available that updates the version number.
set file_name
set output_file_name ${file_name}.updated_version_number
if { } {
post_message -type critical_warning "Could not update version number: $res"
} else {
if { } {
post_message -type critical_warning
"Could not update version number: $res"
}
}
My aim now is to update the date of the vhdl file using Date2HDL (http://www.ht-lab.com/freeutils/date2hdl/date2hdl.html), and if change 'update_version_number' to 'date2hdl', it doesn't work which is no surprise since it's a proc, while date2hdl is a tcl script. How can I make it work? Thanks