09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SCCS: Source Code Control System <strong>XENIX</strong> Programming<br />

Assigning Values to Keywords<br />

The values of most keywords are predefined by the system, but some, such as the value<br />

for the 96M96 keyword, can be explicitly defined by the user. To assign a value to a<br />

keyword, you must set the corresponding s-file flag to the desired value. You can do<br />

this by using the -f option of the admin command.<br />

For example, to set the 96M96 keyword to "cdemo", set the m flag as in the command<br />

admin -fmcdemo s.demo.c<br />

This command records "cdemo" as the current value of the 96M96 keyword. Note that if<br />

you do not set the m flag, SCCS uses the name of the original text file for 96M96 by<br />

default.<br />

The t and q flags are also associated with keywords. A description of these flags and<br />

the corresponding keywords can be found in the entry get in Appendix B, "Programming<br />

Commands." You can change keyword values at any time.<br />

Forcing Keywords<br />

You can force a fatal error if a version is found to contain no keywords by setting the i<br />

flag in the given s-file. The flag causes the delta and admin commands to stop<br />

processing of the given version and report an error if no keywords are found. The flag is<br />

useful for ensuring that keywords are used properly in a given file.<br />

To set the i flag, you must use the -f option of the admin command. For example, the<br />

command<br />

admin -fi s.demo.c<br />

sets the i flag in the s-file s.demo.c. Subsequent delta or admin commands that access<br />

this file print an error message if the given version does not contain keywords.<br />

Note that if you attempt to set the i flag at the same time you create an s-file and if<br />

the initial text file contains no keywords, the admin command displays a fatal error<br />

message and stops without creating the s-file.<br />

Using s-file Flags<br />

An s-file flag is a special value that defines how SCCS will operate on the corresponding<br />

s-file. The s-file flags are stored in the s-file and are read by each SCCS command<br />

before it operates on the file. The s-file flags affect keyword checking, keyword<br />

replacement values, and default values for commands.<br />

This section explains how to set and use s-file flags. It also describes the action of<br />

commonly used flags. For a complete description of all flags, see the entry admin in<br />

Appendix B, "Programming Commands."<br />

5-14

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

Saved successfully!

Ooh no, something went wrong!