CDC(1s,C) AIX Commands Reference CDC(1s,C) ------------------------------------------------------------------------------- cdc PURPOSE Changes the comments in a Source Code Control System (SCCS) delta. SYNTAX +------------+ +-------------+ cdc --- -rSID ---| |---| |--- file ---| +- -mmrlist -+ +- -ycomment -+ ^ | +--------+ +---- -m ----+ +---- -y -----+ cdc --- -rSID ---| |---| |--- - ---| +- -mmrlist -+ +- -ycomment -+ DESCRIPTION The cdc command changes the Modification Requests (MRs) and comments for the SID specified by the -r flag for each named Source Code Control System (SCCS) file. If you specify a directory name, the cdc command 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 - (minus) in place of file, the cdc command reads standard input and interprets each line as the name of an SCCS file. For more information on SCCS comments and Modification Requests, see AIX Operating System Programming Tools and Interfaces. You can change the comments and MRs for an SID only if you made the SID or if you own the file and the directory. For more information on the permissions needed to change SCCS files, see "SCCS Files." FLAGS -m[mrlist] Supplies a list of MR numbers for the cdc command to add or delete in the SID specified by the -r flag. You can only use this flag if the file has the v header flag set (see Figure 2). A null MR list has no effect. In the mrlist, MRs are separated by blanks, 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 each MR with a comment line indicating which MRs was deleted. Processed November 8, 1990 CDC(1s,C) 1 CDC(1s,C) AIX Commands Reference CDC(1s,C) If you do not specify the -m flag and the v header flag is set, MRs are read from standard input. If standard input is a terminal, the cdc command prompts you for the MRs. The first new-line character not preceded by a backslash ends the list on the command line. The cdc command continues to take input until it reads an end-of-file character (Ctrl-D) or a blank line. MRs are always read before comments (see the -y flag). If the v flag has a value, the cdc command interprets the value as the name of a program which validates the MR numbers. If the MR number validation program returns a nonzero exit value, the command stops and does not change the MRs. -rSID Specifies the SCCS identification number of the delta for which the cdc command can change the comments or MRs. -y[comment] Specifies text to replace any comment already existing for the delta specified by the -r flag. The cdc command keeps the existing comments and precedes them with a comment line stating that they were changed. A null comment has no effect. If you do not specify the -y flag, the cdc command reads comments from standard input until it reads an end-of-file character. If the standard input is a work station, 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. Note: If the cdc command reads standard input for file names (that is, when you specify a file name of -), you must use the -y and -m flags. RELATED INFORMATION See the following commands: "admin," "delta," "get," "sccshelp," and "prs." See the sccsfile file in AIX Operating System Technical Reference. The discussion of SCCS in AIX Operating System Programming Tools and Interfaces. Processed November 8, 1990 CDC(1s,C) 2