As you know, Windows Executable Binary Files (EXE, DLL, and so forth) have their own version information.
This information consists of four positions with two bytes each, such as "xx.xx.xxxxx.xx" (it means major.minor.buildno.extend).
Already, there are several standalone tools or VS macros to implement automatic version numbering. But, these were not enough to implement more dynamic version numbering.
So finally, I tried to make a version number build tool myself to support more enhanced functions and to be more useful.
This tool, 'VERBUILD ' will help you manage a rather more complex version numbering system more easily.
- Increments the version number on each build.
- Supports two types of build numbers (daily basis and normal digits).
- Supports overflow shifting.
- Maximum and minimum positions are available.
- An individual increment option is available for file version or product version.
- There is an option to add a null string to the string version.
- The method creates 'VersionNo.h' and uses .rc2/.
VERBUILD file <format> [options...] VERBUILD @file [<format>] [options...]
- file: Version header file to update. The @file list file switch specifies one file on each line for example:
- *: Keep current position + : increment position by one
- digits: Set position to this value. for example, *.*.71.+
- p or P: (P)roduct version to increment on.
- f,p (individual increment): F,P (set by full version).
Each version's positions consists of major.minor.buildno.extend and simply to A.B.C.D,
- verbuild VersionNo.h -c: Creates an initial VersionNo.h file if it does not exist already.
- verbuild VersionNo.h *.*.*.+ -d2005 -xFp -b188.8.131.52 -e10.10.2310.12 -s: The daily basis from 2005(-d2005), minimum buildno position is 184.108.40.206(-b), and the maximum build number is 10.10.2310.12(-e). only increasing the part 'D' positions of the A.B.C.D Format(*.*.*.+), the file version is equal to the full version(-xF). the product version is individually self increasing (-xp). If it is in the overflow minimum or maximum positions, shifts each positions of A.B.C.D(-s) but,in daily basis mode,the part 'C' positions is fixed by daily information. When 'D' positions are overflowing,'B' will be increased by skip 'C' if in daily basis mode.
- verbuild VersionNo.h *.*.*.+ -xFp -b220.127.116.11 -e10.10.2310.12 -s: Normal build number positions mode (part 'C' positions) are in effect.
- verbuild -n2303 -d2005: Decodes the build number (part 'C' positions) created by daily basis mode with the -d option.