Tool/software: Code Composer Studio
I'm trying to grab the git tag information for my code before I compile it. In a command shell, I can just run the following in order to store the information in an environment variable:
git describe > temp.txt set /p VERSION_NUMBER=<temp.txt del temp.txt
Those steps executed fine in the compilation, but when it gets to building main.c where VERSION_NUMBER is referenced, the symbol is still undefined. What is the correct way to set this up? Will these steps get executed in the generated makefile, or will they get executed in a shell which closes before the compiler is called? Here is how I put the commands into the pre-build steps:
