Re: rcs file
On Mon, Mar 19, 2007 at 04:57:59PM -0400, Tony Heal wrote:
> I am trying to initialize and update an rcs file manually. Here is what I am trying to do.
>
> Debian woody
> rcs v 5.7-13
> TWiki - 24 Nov 2001
>
> I am using the xconf plugin to parse an xconf file. This works fine.
>
> I want to create an access page that will show each object in our
> object dictionary. I already have this part figured out.
>
> My problem is one I create this page I have to manually edit it in
> TWiki 2 times to get it formatted correctly. In the background editing
> it twice creates the rcs revision file. I want to script this part
> also. I can create the initial rcs file, but I can not figure out
> how to update that file after I have updated the source file with my
> script. The initial rcs file is created without a rev number in it.
> Here are the steps I am doing
>
> rm /var/www/twiki/data/Trash/ObjectModel.txt*
> echo "---++ Objects in $branch" > /var/www/twiki/data/Trash/ObjectModel\.txt
> rcs -i -b1 -t-"" /var/www/twiki/data/Trash/ObjectModel.txt
> for i in $Objects ; do
> echo "%XCONF{myprogram, $i}" > /var/www/twiki/data/Trash/$i\Object\.txt
> echo > " * $i""Object" >> /var/www/twiki/data/Trash/ObjectModel\.txt
> done
>
> rcsdiff -r1 /var/www/twiki/data/Trash/ObjectModel.txt
>
> the last line does NOT create an updated revision file. That is my problem.
>
> Anyone know how to fix this?
(Quoted text formatted to fit and to try to understand it...).
I'm don't follow what you're trying to do, but I frequently use rcs for
quick & dirty versioning of individual files, and just use 'ci -l file'.
This creates the initial rcs file and leaves the file there to continue
normal use. It'll ask for a comment, so you may want to provide that
as well.
--
Ken Irving
Reply to:
- References:
- rcs file
- From: "Tony Heal" <theal@pace2020.com>