I want to include svn version number into my C/C++ code. I found a way to do it in linux, but I also compile the code under Windows, where I don't use svn.
One way to do it would be to create a file
svn.h, which is then included into the code. The file should contain the following line:
#define SVNVERSION "12345M"
12345M is the output of the command svnversion. How to create such a file using bash script (or how to include the command into the Makefile)?