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

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

09.06.2013 Views

XENIX Programming sees: Source Code Control System where -rrel-num gives the value of the starting release number, and s.filename is the name of the s-file to be created. For example, the command admin -idemo.c -r3 s.demo.c starts with release number 3. The first version is 3.1. Adding a Comment to the First Version You can add a comment to the first version of a file by using the -y option of the admin command when creating the s-file. For example, the command admin -idemo.c -y''George Wheeler" s.demo.c inserts the comment "George Wheeler" in the new s-file s.demo.c. The comment may be any combination of letters, digits, and punctuation symbols. If spaces are used, the comment must be enclosed in double quotes. The complete command must fit on one line. If the -y option is not used when creating an s-file, a comment of the form date and ti me created YY/MM/DD HH:MM :SS by logname is automatically inserted. Suppressing Normal Output You can suppress the normal display of messages created by the get command by using the -s option. The option prevents information, such as the SID of the retrieved file, from being copied to the standard output. The option does not suppress error messages. The -s option is often used with the -p option to pipe the output of the get command to other commands. For example, the command get -p -s s.demo.c I I pr copies the most recent version in the s-file s.demo.c to the line printer. You can also suppress the normal output of the delta command by using the -s option. This option suppresses all output normally directed to the standard output, except for the normal comment prompt. 5-27

SCCS: Source Code Control System XENIX Programming Including and Excluding Deltas You can explicitly define which deltas you wish to include and which you wish to exclude when creating a g-file by using the -i and -x options of the get command. The -i option causes the command to apply the given deltas when constructing a version. The -x option causes the command to ignore the given deltas when constructing a version. Both options must be followed by one or more SIDs. If multiple SIDs are given, they must be separated by commas (,). A range of SIDs may be given by separating two SIDs with a hyphen (-). For example, the command get -i 1.2, 1.3 s.demo.c causes deltas 1.2 and 1.3 to be used to construct the g-file. The command get -x1.2-1.4 s.demo.c causes deltas 1.2 through 1.4 to be ignored when constructing the file. The -i option is useful if you wish to apply the same changes to more than one version. For example, the command get -e -i4. 1 -r3.3 s.demo.c retrieves version 3.3 for editing. When the file is retrieved, the changes in delta 4.1 are automatically applied to it, making the g-file the same as if version 3.3 had been edited by hand using the changes in delta 4.1. These changes can be saved immediately by issuing a delta command. No editing is required. The -x option is useful if you wish to remove changes performed on a given version. For example, the command get -e -x 1.5 -r1.6 s.demo.c retrieves version 1.6 for editing. When the file is retrieved, the changes in delta 1.5 are automatically left out of it, making the g-file the same as if version 1.4 had been changed according to delta 1.6 (with no intervening delta 1.5). These changes can be saved immediately by issuing a delta command. No editing is required. When deltas are included or excluded, get compares them with the deltas normally used in constructing the given version. If two deltas attempt to change the same line of the retrieved file, the command displays a warning message. The message shows the range of lines in which the problem may exist. Corrective action, if required, is the responsibility of the user. 5-28

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

where -rrel-num gives the value of the starting release number, and s.filename is the<br />

name of the s-file to be created. For example, the command<br />

admin -idemo.c -r3 s.demo.c<br />

starts with release number 3. The first version is 3.1.<br />

Adding a Comment to the First Version<br />

You can add a comment to the first version of a file by using the -y option of the admin<br />

command when creating the s-file. For example, the command<br />

admin -idemo.c -y''George Wheeler" s.demo.c<br />

inserts the comment "George Wheeler" in the new s-file s.demo.c.<br />

The comment may be any combination of letters, digits, and punctuation symbols. If<br />

spaces are used, the comment must be enclosed in double quotes. The complete<br />

command must fit on one line.<br />

If the -y option is not used when creating an s-file, a comment of the form<br />

date and ti me created YY/MM/DD HH:MM :SS by logname<br />

is automatically inserted.<br />

Suppressing Normal Output<br />

You can suppress the normal display of messages created by the get command by using<br />

the -s option. The option prevents information, such as the SID of the retrieved file,<br />

from being copied to the standard output. The option does not suppress error messages.<br />

The -s option is often used with the -p option to pipe the output of the get command to<br />

other commands. For example, the command<br />

get -p -s s.demo.c I I pr<br />

copies the most recent version in the s-file s.demo.c to the line printer.<br />

You can also suppress the normal output of the delta command by using the -s option.<br />

This option suppresses all output normally directed to the standard output, except for<br />

the normal comment prompt.<br />

5-27

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

Saved successfully!

Ooh no, something went wrong!