Table of Contents



NAME

precs - change PRECS file attributes

SYNOPSIS

precs
}


Copyright (C) 1995 University of Kansas. All rights reserved.

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Kansas University not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Kansas University makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

DESCRIPTION

precs creates new PRECS files or changes attributes of existing ones. A PRECS file contains multiple revisions of text, an access list, a change log, descriptive text, and some control attributes. For precs to work, the caller's name must be on the access list, except if the access list is empty, the caller is the owner of the file or the superuser.

Pathnames matching the PRECS suffix denote PRECS files; all others denote working files.

OPTIONS

-alogins
Append the login names appearing in the comma-separated list logins to the access list of the PRECS file.
-Aoldfile
Append the access list of oldfile to the access list of the PRECS file.
-e[logins]
Erase the login names appearing in the comma-separated list logins from the access list of the PRECS file. If logins is omitted, erase the entire access list.
-b[rev]
Set the default branch to rev. If rev is omitted, the default branch is reset to the (dynamically) highest branch on the trunk.
-cstring
sets the comment leader to string. The comment leader is printed before every log message line generated by the keyword $Log$ during checkout (see getf(1)). This is useful for programming languages without multi-line comments. An initial newf , or an precs -i without -c, guesses the comment leader from the suffix of the working file.
-ksubst
Set the default keyword substitution to subst. The effect of keyword substitution is described in getf(1). Giving an explicit -k option to any of the getor edit commands overrides this default. Use precs -kkv to restore the normal default keyword substitution.
-mrev:msg
Replace revision rev's log message with msg.
-nname[:[rev]]
Associate the symbolic name name with the branch or revision rev. Delete the symbolic name if both : and rev are omitted; otherwise, print an error message if name is already associated with another number. If rev is symbolic, it is expanded before association. A rev consisting of a branch number followed by a . stands for the current latest revision in the branch. A : with an empty rev stands for the current latest revision on the default branch, normally the trunk. For example, precs -nname: filenames associates name with the current latest revision of all the named PRECS files; this contrasts with precs -nname:$ filenames which associates name with the revision numbers extracted from keyword strings in the corresponding working files.
-Nname[:[rev]]
Act like -n, except override any previous assignment of name.
-q
Run quietly; do not print diagnostics.
-I
Run interactively, even if the standard input is not a terminal.
-sstate[:rev]
Set the state attribute of the revision rev to state . If rev is a branch number, assume the latest revision on that branch. If rev is omitted, assume the latest revision on the default branch. Any identifier is acceptable for state. A useful set of states is Exp (for experimental), Stab (for stable), and Rel (for released). By default, newf(1) sets the state of a revision to Exp.
-t[file]
Write descriptive text from the contents of the named file into the PRECS file, deleting the existing text. The file pathname may not begin with -. If file is omitted, obtain the text from standard input, terminated by end-of-file or by a line containing . by itself. Prompt for the text if interaction is possible; see -I. With -i, descriptive text is obtained even if -t is not given.
-t-string
Write descriptive text from the string into the PRECS file, deleting the existing text.
-Vn
Emulate RCS version n. See getf(1) for details.

ENVIRONMENT

RCSINIT
options prepended to the argument list, separated by spaces. See getf(1) for details.

DIAGNOSTICS

The PRECS pathname, the working pathname, and the revision number retrieved are written to the diagnostic output. The exit status is zero if and only if all operations were successful.

IDENTIFICATION

Author: Robert W. Hill $Id: precs/docs:precs.1 1.2 $

SEE ALSO

basics(1), newf (1), newg (1), newp (1), gets (1), getf (1), getg (1), getp (1), edits (1), editf (1), editg (1), editp (1), deltas (1), deltaf (1), deltag (1), deltap (1), install(1) precslog (1), liste (1), listf (1), listg (1), overview(1), prepf (1), prepp (1), precsintro (1), rmf (1), rmg (1), rmp(1), removing (1), setgroup (1), unedit (1), xprecs (1),


Table of Contents


www.fiveanddime.net


Google
Web www.fiveanddime.net