[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to checkout a specific file from a Makefile
From: |
Bram Moolenaar |
Subject: |
Re: how to checkout a specific file from a Makefile |
Date: |
Fri, 12 Jul 2002 22:52:26 +0200 |
Larry Jones wrote:
> 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
This indeed works. Thanks for the hint, I wouldn't have guessed this.
However, if I change the question to checkout "testdir", which obviously
is a directory instead of a file, this doesn't seem to work. Perhaps
you have a solution for that as well? "cvs update testdir" doesn't do
anything, not even an error message.
--
ARTHUR: The swallow may fly south with the sun, or the house martin or the
plover seek warmer hot lands in winter, yet these are not strangers to
our land.
SOLDIER: Are you suggesting coconuts migrate?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- address@hidden -- http://www.moolenaar.net \\\
/// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
\\\ Project leader for A-A-P -- http://www.a-a-p.org ///
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
- how to checkout a specific file from a Makefile, Bram Moolenaar, 2002/07/12
- Re: how to checkout a specific file from a Makefile, Larry Jones, 2002/07/12
- Re: how to checkout a specific file from a Makefile,
Bram Moolenaar <=
- Re: how to checkout a specific file from a Makefile, Larry Jones, 2002/07/12
- Re: how to checkout a specific file from a Makefile, Bram Moolenaar, 2002/07/13
- How to diff a binary file?, George xu, 2002/07/14
- Re: How to diff a binary file?, Rob Helmer, 2002/07/15
- Re: How to diff a binary file?, Larry Jones, 2002/07/15
- Re: How to diff a binary file?, Rob Helmer, 2002/07/15
- Re: How to diff a binary file?, David Marshburn, 2002/07/15