This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Version information in build

Is it possible to create some kind of listing, in the compile/linking time, with file version information,taken from source control program (ClearCase in our case)?
I mean that I want to have detailed information, of what version of which file was used in current compilation.
Thank you in advance :)

Parents
  • Did I get the wrong end of the stick there?

    You just want a listing, rather than to embed the information in the generated object file(s)?

    If that's the case, the solution is similar - but you just get the source control system to put the information into a comment somewhere in each file.

    The header comment for each file would seem the obvious place...

    eg,

    /* File:    blah.c
     * Version: $_version_$
     * etc...
     :
     :
     */
    Again, you need to check the documentaion for your source control system for specific details.
    I'd be surprised if it didn't actually tell you all this itself!

Reply
  • Did I get the wrong end of the stick there?

    You just want a listing, rather than to embed the information in the generated object file(s)?

    If that's the case, the solution is similar - but you just get the source control system to put the information into a comment somewhere in each file.

    The header comment for each file would seem the obvious place...

    eg,

    /* File:    blah.c
     * Version: $_version_$
     * etc...
     :
     :
     */
    Again, you need to check the documentaion for your source control system for specific details.
    I'd be surprised if it didn't actually tell you all this itself!

Children
No data