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.

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

After retrieving a text file, the command displays a message giving the SID of the file<br />

and its size in lines. The message also displays a proposed SID, that is, the SID for the<br />

new version after editing. For example, after retrieving the six-line C program in<br />

s.demo.c, the command displays the message<br />

1.1<br />

new delta 1.2<br />

Glines<br />

The proposed SID is 1.2. If more than one file is retrieved, the corresponding file name<br />

precedes the relevant information.<br />

Note that any changes made to the text file are not immediately copied to the<br />

corresponding s-file. To save these changes you must use the delta command described<br />

in the next section. To help keep track of the current file version, the get command<br />

creates another file, called a p-file, that contains information about the text file. This<br />

file is used by a subsequent delta command when saving the new version. The p-file has<br />

the same name as the s-file but begins with "p.". The user must not access the p-file<br />

directly.<br />

Saving a New Version of a File<br />

Yoti can save a new version of a text file by using the delta command. The command<br />

has the form<br />

delta s. filename<br />

where s.filename is the name of the s-file from which the modified text file was<br />

retrieved. For example, to save changes made to a C program in the file demo.c (which<br />

was retrieved from the file s.demo.c), type<br />

delta s.demo.c<br />

Before saving the new version, the delta command asks for comments explaining the<br />

nature of the changes. It displays the prompt<br />

comments?<br />

You may type any text you think appropriate, up to 512 characters. The comment must<br />

end with a newline character. If necessary, you can start a new line by typing a<br />

backslash {\) followed by a newline character. If you do not wish to include a comment,<br />

just type a newline character.<br />

Once you have given a comment, the command uses the information in the<br />

corresponding p-file to compare the original version with the new version. A list of all<br />

the changes is copied to the s-file. This is the new delta.<br />

5-7

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

Saved successfully!

Ooh no, something went wrong!