Subject: Re: Upgrading from 1.5.2 to -current?
To: Brad Knowles <brad.knowles@skynet.be>
From: Geoff Adams <gadams@avernus.com>
List: port-sparc
Date: 04/21/2002 15:58:05
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
First, I apologize for the duplication of my last message. Mailer
hiccough. Now, back to CVS.
On Sunday, April 21, 2002, at 09:01 AM, Brad Knowles wrote:
> At 8:20 PM -0400 2002/04/20, Geoff Adams wrote:
>
>> The 'cvs login' part looks good.
>>
>> After that, you'll need to cd into your src directory.
>
> This is contrary to the "How to Update with CVS" documentation
> that I have found in chapter 18.1 in the NetBSD Guide, which in HTML
> form in the English language, is located at
> <http://www.mclink.it/personal/MG2508/nbsdeng/chap-cvs.html#AEN4890>.
> Specifically, it says:
>
> | To get the sources from scratch without having anything in /usr/src
> |
> | % setenv CVSROOT :pserver:anoncvs@anoncvs.netbsd.org:/cvsroot
> | % cd /usr
> | % cvs login
> | password: anoncvs
> | % cvs checkout -rnetbsd-1-5 -PA src
>
> ....
>
> In my examples, I was starting from the /usr directory, as
> specified in the instructions.
Right, and that's all correct for the *checkout* command. The 'cvs
checkout' command is for getting the source for the first time, so you
need to specify a CVSROOT, and you need to specify a module name (such
as src). CVS will check out the module and deposit the results in a new
directory of the name of the module. (It will lay down the checked-out
files on top of an existing directory, if one exists and is under CVS
control. Also, there are cases where modules will check out into a
different directory than the module name; we'll ignore such details for
the moment.)
The 'cvs update' command is used to update what you already have, so you
need to be in an already-checked-out directory, and it will, by default,
use the CVSROOT specified in the various CVS directories' Root files.
(That can be overridden by using the '-d' option to cvs.) Note that the
optional file/directory arguments to the 'update' command are not
modules, as they are for 'checkout,' but files and directories in your
locally checked-out working copy that you want updated.
So: cd to /usr for 'cvs checkout'; cd /usr/src for 'cvs update'. (Using
your particular path examples.)
- - Geoff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org
iD8DBQE8wxnaQz98e6UCqO0RAq0WAJ98W79Ljq2CX38E2q/HONb/Us+EsACfbEUr
fK99jJqE2Bl28HAprYw74zg=
=oKam
-----END PGP SIGNATURE-----