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

After a command has copied the new delta to the s-file, it displays a message showing<br />

the new SID and the number of lines inserted, deleted, or left unchanged in the new<br />

version. For example, if the C program has been changed to<br />

#include <br />

main ()<br />

{<br />

inti = 2;<br />

printf("This is version 1. %d \n ", i);<br />

}<br />

the command displays the message<br />

1.2<br />

3 inserted<br />

1 deleted<br />

5 unchanged<br />

Once a new version is saved, the next get command retrieves the new version. The<br />

command ignores previous versions. If you wish to retrieve a previous version, you must<br />

use the -r option of the get command as described in the next section.<br />

Retrieving a Specific Version<br />

You can retrieve any version you wish from an s-file by using the -r (for "retrieve")<br />

option of the get command. The command has the form<br />

get [ -e ] -rSID s. filename • • •<br />

where -e is the edit option, -rSID gives the SID of the version to be retrieved, and<br />

s.filename is the name of the s-file containing the file to be retrieved. You may give<br />

more than one file name. Names must be separated with spaces or tabs.<br />

The command retrieves the given version and copies it to the file having the same name<br />

as s-file but with the s. removed. The file has read-only permission unless you also give<br />

the -e option. If multiple file names are given, one text file of the given version is<br />

retrieved from each. For example, the command<br />

get -r1 .1 s.demo.c<br />

retrieves version 1.1 from the s-file s.demo.c, but the command<br />

get -e -r1.1 s.demo.c s.def.h<br />

retrieves for editing a version 1.1 from both s.demo.c and s.def.h. If you give the<br />

number of a version that does not exist, the command displays an error message.<br />

5-8

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

Saved successfully!

Ooh no, something went wrong!