I have a server where I upload sometimes the new version of my software. For each upload, I have to incremente the build var contained in a file.ver, like #BUILD 345. Well, I cannot do this everytime manually, but I prefer a smart and fast solution, that increment the number of the version for each upload.
What's the easiest way? There is in bash a nice command to do that? Or a callback method written in C/C++?