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 SCCS: Source Code Control System Adding Comments You can add comments to an s-file by using the -y option of the delta and admin commands. This option causes the given text to be copied to the s-file as the comment for the new version. The comment may be any combination of letters, digits, and punctuation symbols. No embedded newline characters are allowed. If spaces are used, the comment must be enclosed in double quotes. The complete command must fit on one line. For example, the command delta -y"George Wheeler" s.demo.c saves the comment "George Wheeler" in the s-file s.demo.c. The -y option is typically used in shell procedures as part of an automated approach to maintaining files. When the -y option is used, the delta command does not print the corresponding comment prompt, so no interaction is required. If more than one s-file is given in the command line, the given comment applies to them all. Changing Comments You can change the comments in an s-file by using the cdc command. The command has the form cdc -rSID s. filename where -rSID gives the SID of the version with the comment to be changed, and s.filename is the name of the s-file containing the version. The command asks for a new comment by displaying the prompt comments? You may type any sequence of characters up to 512 characters long. The sequence may contain embedded newline characters if each such newline character is preceded by a backslash {\}. The sequence must be terminated with a newline character. For example, the command cdc -r3.4 s.demo.c prompts for a new comment for version 3.4. Although the command does not delete the old comment, it is no longer directly accessible by the user. The new comment contains the login name of the user who invoked the cdc command and the time the comment was changed. 5-17

SCCS: Source Code Control System XENIX Programming Adding Mod ification Requests You can add modification requests to an s-file, when the v flag is set, by using the -m option of the delta and admin commands. A modification request is a shorthand method of describing the reason for a particular version. Modification requests are usually names or numbers that the user has chosen to represent a specific request. The -m option causes the given command to save the requests following the option. A request may be any combination of letters, digits, and punctuation symbols. If spaces are used, you must enclose the request in double quotes. For example, the command delta -m" error35 optimize10" s.demo.c copies the requests "error35" and "optimizelO" to s.demo.c while saving the new version. The -m option when used with the admin command must be combined with the -i option. Furthermore, the v flag must be explicitly set with the -f option. For example, the command admin -idef.h -m" errorO" -fv s.def.h inserts the modification request "errorO" in the new file s.def.h. The delta command does not prompt for modification requests if you use the -m option. Changing Mod ification Requests You can change modification requests, when the v flag is set, by using the cdc command. The command asks for a list of modification requests by displaying the prompt MRs? You may type any number of requests. Each request may have any combination of letters, digits, or punctuation sy mbols. No more than 512 characters are allowed and the last request must be terminated with a newline character. If you wish to remove a request, you must precede the request with an exclamation mark (!). For example, the command cdc -r1.4 s.demo.c asks for changes to the modification requests. The response MRs? error36 !error3 5 adds the request "error36" and removes "error35". 5-18

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

Adding Comments<br />

You can add comments to an s-file by using the -y option of the delta and admin<br />

commands. This option causes the given text to be copied to the s-file as the comment<br />

for the new version. The comment may be any combination of letters, digits, and<br />

punctuation symbols. No embedded newline characters are allowed. If spaces are used,<br />

the comment must be enclosed in double quotes. The complete command must fit on<br />

one line. For example, the command<br />

delta -y"George Wheeler" s.demo.c<br />

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

The -y option is typically used in shell procedures as part of an automated approach to<br />

maintaining files. When the -y option is used, the delta command does not print the<br />

corresponding comment prompt, so no interaction is required. If more than one s-file is<br />

given in the command line, the given comment applies to them all.<br />

Changing Comments<br />

You can change the comments in an s-file by using the cdc command. The command has<br />

the form<br />

cdc -rSID s. filename<br />

where -rSID gives the SID of the version with the comment to be changed, and<br />

s.filename is the name of the s-file containing the version. The command asks for a new<br />

comment by displaying the prompt<br />

comments?<br />

You may type any sequence of characters up to 512 characters long. The sequence may<br />

contain embedded newline characters if each such newline character is preceded by a<br />

backslash {\}. The sequence must be terminated with a newline character. For example,<br />

the command<br />

cdc -r3.4 s.demo.c<br />

prompts for a new comment for version 3.4.<br />

Although the command does not delete the old comment, it is no longer directly<br />

accessible by the user. The new comment contains the login name of the user who<br />

invoked the cdc command and the time the comment was changed.<br />

5-17

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

Saved successfully!

Ooh no, something went wrong!