I currently use Subversion, and it's working well for me. I'm trying to figure out the best way to get the latest revision number from Subversion into my build code. (It seems it must be simple, but my brain has locked up when it comes to this!)
The command "svnlook youngest c:/myrepositorypath" will return a single number of the latest revision number (for example, 49). I'd like to be able to write this number, surrounded by double quotes, to 2 different files, using 4 decimal places (leading zeros to make a 4-digit string). I can either modify an existing file or write a new file each time, as the two files needed can each be a single line.
For example, after calling my script, the data in the first file would look like this (assuming a current revision number of 49):
Code: Select all
#define mybuild "0049"I know this shouldn't be hard to do, but I'm just not thinking about it correctly!
Thanks in advance!
andy
XYplorer Beta Club