In article <50150@palm-dev-forum>, Marshall Clow <[EMAIL PROTECTED]> wrote:
>>Is it possible in CW7 to auto increment an applications build number. For
>>example:
>>
>>I would like to display a heading similar to "MyApp ver1.3 build 5342" on
>>the Visor, where the version is controlled manually but the build is
>>incremented automatically. Is this possible?
>
>Certainly.
>CodeWarrior has a "plugin SDK" where you can write tools that run as
>part of the build process. (Compilers, linkers, etc. are plugins)
>
>In fact, I remember that someone wrote a CodeWarrior plugin to do exactly
>this. (for MacOS development instead of PalmOS). However, two minutes of
>searching on AltaVista failed to turn up a reference.
I use MWPerl to do this. The Perl interpreter is called during the build
process and increases the build number in a file. Then this file is used to
generate a vers resource. Just a few lines of Perl.
The only limitation is that the build number is increased even if the build
is stopped due to a compilation error. I wish that the Perl script could be
run at the end of the build process.
---
Rene' Laterveer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/