Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- I see... well I guess I'll stick to the other idea, which is reading from a file containing the version number. Btw, is there a way to read one line at a time and store the value of each line into their own variable? --- Quote End --- Yes, you can do things like that with Tcl. However, if you are writing the file with the version number in it, simply create the file using Tcl syntax, and then just have your build script source the file. Eg., something like the following (which is probably more complicated than you need, but you get the point)
# version.tcl# # Automatically generated version file. Do not manually edit.#
set version_major 1
set version_minor 2
set version
Cheers, Dave