tags:

views:

39

answers:

1

Hi Guys Can you please explain what is the meaning of each key in the following declaration

#pragma ident "%Z% %M% v%I% (c) GEMS %G%"

I am using Clearcase Revision Control System

+1  A: 

Pragmas are compiler dependent stuff. This one looks specific to Sun Studio's compiler. From the documentation:

Use ident to place string in the .comment section of the executable.

This would mean the executable will contain a string after suitable transformation of the variables (i.e. %Z% etc).

dirkgently
It has something to do with Mercurial. %I is version, %M is filename. Very intuitive.
Hans Passant
@Hans Passant: The OP is using Clearcase ...
dirkgently
The original programmer probably was not :)
Hans Passant
Yes, I guess so.
dirkgently
HI I need it for ClearCase.My Requirement is that for everycheck in it should update %I% information with proper version number.So that when I run what command on the executables I can see from which version of the file it has created .