[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

1582.0. "FYI on rcs Comment Leaders & rcs Keywords" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Tue Jun 27 1995 17:05

Date Of Receipt: 	27-JUN-1995 15:12:57.38
From: 	SMURF::FLUME::jmf "Joshua M. Friedman OSF/UNIX SDE  27-Jun-1995 1510"
To: 	decwet::anderson, decwet::ode
CC: 	[email protected], odehelp@DEC:.zko.flume, tresvik@DEC:.zko.flume
Subj: 	FYI on rcs Comment Leaders & rcs Keywords

Tina et al, rcs -c isn't always enough to "fix" a file...

I recently "fixed" up a bunch of our os pool rcs files to make the rcs
comment leader agree which what's really in the file (with the aid of a
script from Mike Cavins from Locus).  Afterwards, while checking this
work, I found out that the rcs tokens will still not expand in many of
the files, because of the "keywords" switch being 'o' instead of 'kv'.
I've just reset the keyword expansion switch to the default kv for
these files.

I just did a test - if a user does a bcreate of a file with type BIN
and then changes its comment leader with bcs -c, ODE or RCS do the
right thing: behind the scenes the keyword changes from 'o' to 'kv'
automatically.

However manually correcting files with rcs -c is not enough, it's also
necessary to use rcs -kkv to reset the keyword switches, or else bco's
still don't expand rcs keywords.

I'll need to do a cross check to see if all files with comment leader
not equal to BIN or NONE have keywords 'kv' and otherwise 'o'.

(You don't have tools related to this do you?  I didn't think so.)

-josh


---------
From the rcs man page:
  -ksubst
	...  Use rcs -kkv to restore the normal default keyword substitution.


test case showing "bcs -c" does effecively an "rcs -kkv -c":

ptos-510 % bcreate test_noext
[ creating ./admin/test_noext,v ]
[ setting leader to 'BIN' ]
[ ./admin/test_noext 1.1.1.1 created ]

ptos-511 % blog test_noext
...
comment leader: "BIN"
keyword substitution: o
...

ptos-512 % bcs -c"# " test_noext
[ Comment leader set to '# ' ]

ptos-513 % blog test_noext
...
comment leader: "# "
keyword substitution: kv
...

T.RTitleUserPersonal
Name
DateLines