info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to checkout a specific file from a Makefile


From: Larry Jones
Subject: Re: how to checkout a specific file from a Makefile
Date: Fri, 12 Jul 2002 15:03:08 -0400 (EDT)

Bram Moolenaar writes:
> 
>       testscript:
>               cvs checkout testscript
> 
> This doesn't work, because this is in a subdirectory of the module and
> the actual name is something like "module/foo/bar/testscript".  This
> would work:
> 
>       cd ../../..
>       cvs checkout module/foo/bar/testscript
> 
> However, this requires knowning the name of the module and directories.
> Isn't there way to checkout "testscript" without having to specify the
> whole path in the Makefile (so that maintenance is easier)?
> After all, CVS/Repository contains exactly the name I need to use.  I
> suppose it's used for the update command, so why can't checkout use it?

Because checkout is the wrong subcommand.  The subcommand you want,
surprisingly enough, is update!  Just do:

        cvs update testscript

-Larry Jones

I always have to help Dad establish the proper context. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]