I have a console application written in FORTRAN and would like to append the version of the program to the executable at build time. The source code is under GIT control. I have a post commit hook on git which will create a file name version at the top
of my source tree. How do I define a macro (say Version) which will read the text file. I see user defined macros under C and C++ but not as part of a FORTRAN project.
↧