02.05.2013 Views

User Guide - MKS

User Guide - MKS

User Guide - MKS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using Keywords<br />

The following Source Integrity commands contain keyword expansion<br />

options:<br />

Add Members<br />

Check Out<br />

Check In<br />

Resynchronize<br />

Revert Member<br />

Keyword expansion is configured using the Preferences dialog box in the<br />

graphical user interface or the si setprefs command in the command<br />

line interface. The command line interface settings and dialog boxes in the<br />

graphical user interface can override the default settings. For information<br />

on setting command keyword options, see “Command Preferences” on<br />

page 48.<br />

For information on setting the keyword options for individual commands,<br />

see Source Integrity Enterprise Edition CLI Reference <strong>Guide</strong> or man pages.<br />

Keyword expansion applies to text files only. It is disabled for binary files.<br />

Text before and after the keyword is preserved, making it suitable for use<br />

within expressions, as above, and within comments.<br />

If keyword expansion is enabled and you are checking out a text file that<br />

contains the string<br />

$Revision$<br />

Source Integrity, when it encounters this string, automatically adds the<br />

value of the keyword $Revision$ in the format<br />

where<br />

$Revision: value $<br />

value is the appropriate value of the keyword (in this case, the revision<br />

number).<br />

For example, including the statement<br />

char revnum[] = "$Revision$";<br />

in a C source file creates a character string named revnum containing the<br />

file’s revision number. The program can then be configured to display this<br />

string when it starts up, automatically presenting the current revision of<br />

the program’s source file.<br />

195

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!