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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

SCCS Command Argu ments<br />

Almost all SCCS commands accept two types of arguments: options and file names.<br />

These appear in the sees command line immediately after the command name.<br />

An option indicates a special action to be taken by the given sees command. An option<br />

is usually a lowercase letter preceded by a hyphen (-). Some options require an<br />

additional name or value.<br />

A file name indicates the file to be acted on. The syntax for sees file names is like<br />

other <strong>XENIX</strong> file names. Appropriate path names must be given if required. Some<br />

commands also allow directory names. In this case, all files in the directory are acted<br />

on. If the directory contains non-sees or unreadable files, these are ignored. A file<br />

name must not begin with a hyphen (-).<br />

The special symbol - may be used to cause an SCCS command to read a list of file<br />

names from the standard input. These file names are then used as names for the files to<br />

be processed. The list must be terminated by the end-of-file character CONTROL-D.<br />

Any options given with a command apply to all files. The sees commands process the<br />

options before any file names so the options may appear anywhere on the command line.<br />

File names are processed left to right. If a command encounters a fatal error, it stops<br />

processing the current file and, if any other files have been given, begins processing the<br />

next.<br />

File Administrator<br />

Every SCCS file requires an administrator to maintain and keep the file in order. The<br />

adm inistrator is usually the user who created the file and therefore owns the file. When<br />

other users intend to access the file, the administrator must ensure that they have<br />

adequate access. Several SCCS commands are used by the administrator to define who<br />

has access to the versions in a given s-file. These commands are described later.<br />

Creating and Using s-files<br />

The s-file is the key element in SCCS. It provides compact storage for all versions of a<br />

given file and automatic maintenance of the relationships between the versions.<br />

This section explains how to use the admin, get, and delta commands to create and use<br />

s-files. In particular, it describes how to create the first version of a file, how to<br />

retrieve versions for reading and editing, and how to save new versions.<br />

5-4

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

Saved successfully!

Ooh no, something went wrong!