Autoincrementing a version number

Autoincrementing a version number

Post by Dave Hei » Wed, 02 Jul 2003 02:15:20



Is there an easy way to autoincrement version numbers for the OAL,
bootloader, and/or drivers in CE 4.x?
 
 
 

Autoincrementing a version number

Post by Paul G. Tobey [eMVP » Wed, 02 Jul 2003 02:43:58


None that I've ever found.  What I did was the following:

1. Establish a place on our development network where a file will be kept.
In that file, is the build number we are currently working on.

2. Built a little C program to run on each build machine.  The program opens
the network file, finds the version number, increments it and writes it back
to the network location.

3. Created a CEC file for versioning.  This file, at PreMakeImg-time, runs
the program in 2 to increment the build number.  You add this feature from
the catalog to platforms that need the versioning.

If you are going to try to write the version information into a resource or
something, you may need to move the increment step earlier in the build
process, before the driver, etc. is actually built.  For us, the version
information is simply displayed on the screen when the user commands it, so
writing it to a text file is fine for us (the text file is included in the
nk.bin image).

Paul T.


Quote:> Is there an easy way to autoincrement version numbers for the OAL,
> bootloader, and/or drivers in CE 4.x?