Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 1997 15:12:26 -0700
From:      John Polstra <jdp@polstra.com>
To:        ee@uncanny.net
Cc:        hackers@freebsd.org
Subject:   Re: Right CVS recipe
Message-ID:  <199706142212.PAA07370@austin.polstra.com>
In-Reply-To: <199706141757.KAA24374@pythagoras.uncanny.net>
References:  <199706141757.KAA24374@pythagoras.uncanny.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199706141757.KAA24374@pythagoras.uncanny.net>,
Edward Elhauge  <ee@uncanny.net> wrote:
> 
> The recipe I use to extract the RELENG_2_1_0 release is:
> 	cvs -q checkout -P -f -r RELENG_2_1_0 -N world
> 
> This works OK except that because of the -f flag I get a lot of deleted cruft
> in the ./src tree. This flag is supposed to grab the latest version of a file
> if it can't find one that matches the release tag.

That's right -- don't use the "-f" flag.  You don't need the "-N"
flag, either.  See below.

> Unfortunately when I try to get rid of that flag (-f) something very weird
> happens. All the ./ports files are extracted and created but as I watch them
> (in another window) they get deleted directory by directory just as soon as
> they are created.
> 
> What I gather from this is that either:
> 	1) I'm doing something wrong in the cvs, checkout recipe.
> or
> 	2) the ./ports directory is not tagged to match the RELENG_2_1_0
> 	release and I have to deal with it as a separate extract.

#2 is the right answer.  For your initial checkout, chdir into /usr
and type:

    cvs -q checkout -P -r RELENG_2_1_0 src
    cvs -q checkout -P ports

After you've checked out everything the first time, you should use
"cvs update ..." instead of "cvs checkout" to bring it up to date
periodically.  For the source tree, chdir into /usr/src and type:

    cvs -q update -Pd -r RELENG_2_1_0

For the ports tree, chdir into /usr/ports and type:

    cvs -q update -APd

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706142212.PAA07370>