Adding a version string or time stamp to an executable

There are simple techniques for incorporating a version string and/or time stamp into a C-language compiled executable.

Including a version string or time stamp allows anyone (for example, a customer) to determine the exact version of a program by entering a shell command.

The technique involves using the -Ver option (that is adding a what version? command-line option to the executable itself):

Z:\> monet -Ver
monet R2.0 Baselevel 1 (Thu Feb 11 17:33:23 EST 2003)

After the particular version of the program is determined, you can use HCL VersionVault commands to find a local copy, examine its config record, and if appropriate, reconstruct the source configuration with which it was built. (Presumably, the local copy is a derived object that has been checked in as a version of an element.)

You can identify the appropriate derived object by attaching a VersionVault attribute with the version string to the checked-in executable.