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 />

The data specification is a string of data keywords and text. A data keyword is an<br />

uppercase letter, enclosed in colons (:). It represents a value contained in the given<br />

s-file. For example, the keyword :1: represents the SID of a given version; :F:<br />

represents the file name of the given s-file; and :C: represents the comment line<br />

associated with a given version. Data keywords are replaced by these values when the<br />

information is printed.<br />

For example, the command<br />

prs -d " version: :1: fi lename: :F: " s.demo.c<br />

may produce the line<br />

version: 2.1 fi lename: s.demo.c<br />

A complete list of the data keywords is given in the entry prs in Appendix B,<br />

"Programming Commands."<br />

Printing a Specific Version<br />

You can print information about a specific version in a given s-file by using the -r option<br />

of the prs command. The command has the form<br />

prs -rS/0 s. filename<br />

where -rSID gives the SID of the desired version, and s.filename is the name of the s-file<br />

containing the version. For example, the command<br />

prs -r2. 1 s.demo.c<br />

prints information about version 2.1 in the s-file s.demo.c.<br />

If the -r option is not specified, the command prints information about the most<br />

recently created delta.<br />

Printing later and Earlier Versions<br />

You can print information about a group of versions by using the -1 and -e options of the<br />

prs command. The -1 option causes the command to print information about all versions<br />

immediately succeeding the given version. The -e option causes the command to print<br />

information about all versions immediately preceding the given version. For example,<br />

the command<br />

5-20<br />

prs -r1 .4 -e s.demo.c

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

Saved successfully!

Ooh no, something went wrong!