Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cdc(1) [osf1 man page]

cdc(1)							      General Commands Manual							    cdc(1)

NAME
cdc - Changes the comments in a Source Code Control System (SCCS) delta SYNOPSIS
cdc -rSID [-m] [MRlist] [-y] [comment] file... cdc -rSID -mMRlist -ycomment - The cdc command changes the Modification Requests (MRs) and comments for the SID specified by the -r option for each named Source Code Con- trol System (SCCS) file. OPTIONS
Supplies a list of MR numbers for cdc to add or delete in the SID specified by the -r option. You can use this option only if the file has the v header flag set (see the admin command). A null MR list has no effect. In MRlist, MRs are separated by spaces, tab characters, or both. To delete an MR, precede the MR number with an ! (exclamation point). If the MR you want to delete is currently in the list of MRs, it is changed into a comment line. The cdc command places a list of all deleted MRs in the comment section of the delta and precedes them with a comment line, indicating that the following MRs were deleted. If you do not specify the -m option, and the v header flag is set, MRs are read from standard input. If standard input is a termi- nal, the cdc command prompts you for the MRs. The first newline character not preceded by a (backslash) ends the list on the com- mand line. The cdc command continues to take input until it reads an End-of-File character or a blank line. MRs are always read before comments (see the -y option). If the v flag has a value, cdc interprets the value as the name of a program that validates the MR numbers. If the MR number validation program returns a nonzero exit value, the cdc command stops and does not change the MRs. Specifies the SCCS identification number of the delta for which cdc will change the comments or MRs. Specifies text to replace any comment already existing for the delta specified by the -r option. The cdc command keeps the existing comments and pre- cedes them by a comment line, stating that they were changed. A null comment has no effect. If you do not specify -y, the cdc command reads comments from standard input until it reads an End-of-File character. If the stan- dard input is a terminal, the cdc command prompts for the comments and also allows a blank line to end input. If the last character of a line is a (backslash), the cdc command ignores it and continues to read standard input. If cdc reads standard input for file names (that is, when you specify a file name of - (dash)), you must use the -y and -m options. DESCRIPTION
If you specify a directory name, cdc performs the requested actions on all SCCS files in that directory (that is, all files with names that have the s. prefix). If you specify a - (dash) in place of file, cdc reads standard input and interprets each line as the name of an SCCS file. For more information on SCCS, see the Programming Support Tools. You can change the comments and MRs for an SID only if you made the SID or you own the file and the directory. For more information on the permissions needed to change SCCS files, see the get command. EXIT STATUS
For information about exit values, see the OPTIONS section. EXAMPLES
To change the comment for SID 1.3 of SCCS file s.test.c to new comment, enter: cdc -r1.3 -y"new comment" s.test.c SEE ALSO
Commands: admin(1), comb(1), delta(1), get(1), prs(1), rmdel(1), sact(1), sccs(1), sccsdiff(1), sccshelp(1), unget(1), val(1), what(1) Files: sccsfile(4) Programming Support Tools cdc(1)

Check Out this Related Man Page

sccs-cdc(1)							   User Commands						       sccs-cdc(1)

NAME
sccs-cdc, cdc - change the delta commentary of an SCCS delta SYNOPSIS
/usr/ccs/bin/cdc -rsid [-mmr-list] [ -y [comment]] s.filename... DESCRIPTION
cdc annotates the delta commentary for the SCCS delta ID (SID) specified by the -r option in each named s.file. If the v flag is set in the s.file, you can also use cdc to update the Modification Request (MR) list. If you checked in the delta, or, if you own the file and directory and have write permission, you can use cdc to annotate the commentary. Rather than replacing the existing commentary, cdc inserts the new comment you supply, followed by a line of the form: *** CHANGED *** yy/mm/dd hh/mm/ss username above the existing commentary. If a directory is named as the s.filename argument, the cdc command applies to all s.files in that directory. Unreadable s.files produce an error; processing continues with the next file (if any). If `-' is given as the s.filename argument, each line of the standard input is taken as the name of an SCCS history file to be processed, and the -m and -y options must be used. OPTIONS
-rsid Specify the SID of the delta to change. -mmr-list Specify one or more MR numbers to add or delete. When specifying more than one MR on the command line, mr-list takes the form of a quoted, space-separated list. To delete an MR number, precede it with a ! character (an empty MR list has no effect). A list of deleted MRs is placed in the comment section of the delta commentary. If -m is not used and the stan- dard input is a terminal, cdc prompts with MRs? for the list (before issuing the comments? prompt). -m is only useful when the v flag is set in the s.file. If that flag has a value, it is taken to be the name of a program to validate the MR num- bers. If that validation program returns a non-zero exit status, cdc terminates and the delta commentary remains unchanged. -y[comment] Use comment as the annotation in the delta commentary. The previous comments are retained; the comment is added along with a notation that the commentary was changed. A null comment leaves the commentary unaffected. If -y is not specified and the standard input is a terminal, cdc prompts with comments? for the text of the notation to be added. An unescaped NEW- LINE character terminates the annotation text. EXAMPLES
Example 1: Changing the annotated commentary The following command: example% cdc -r1.6 -y"corrected commentary" s.program.c produces the following annotated commentary for delta 1.6 in s.program.c: D 1.6 88/07/05 23:21:07 username 9 0 00001/00000/00000 MRs: COMMENTS: corrected commentary *** CHANGED *** 88/07/07 14:09:41 username performance enhancements in main() FILES
z.file temporary lock file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsprot | +-----------------------------+-----------------------------+ SEE ALSO
sccs(1), sccs-admin(1), sccs-comb(1), sccs-delta(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), what(1), sccsfile(4), attributes(5) DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)). SunOS 5.10 1 Nov 1999 sccs-cdc(1)
Man Page