Hi There,
I am trying to achieve this too - so that each time the build is remade, a new time / date / version stamp is created automatically.
My intial thought was to create a DOS batch file that touched my file containing defines that had the __DATE__ & __TIME__ pragmas, thus forcing creation of a new string.
I have been trying to find a way to hook this into codewarriors build process - and it has been suggested, as on this thread (sorry - not sure how to post cross links to other threads - but I have a thread under Codewarrior general - search for "AutoTouch") , that the Post Linker is the way to go. However, the big problem with this is that the compilation has already taken place by this time, and so there needs to be a way to re-kick off a compilation - I assume there is a command line command to perform this but I haven't had the time to search for this!
Of course, this then means that anytime the "Debug" arrow is pressed, a new time and date build string is generated. This is not quite ideal - really what is needed is for the file to be touched only if the compiler has been run (i.e. code has changed). Is there a way of achieving this?
Many Thanks,
Mike