I use FinalBuilder to do all my builds, and with that it is easy to add a utility that will update any source file in advance of compilation to search for and modify the definition of a variable or constant. I do build version numbers, dates, anything that makes sense this way.