Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Question about "cvs update"
@ 2010-10-11  7:50 Hui Zhu
  2010-10-11  7:56 ` Jan Kratochvil
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Hui Zhu @ 2010-10-11  7:50 UTC (permalink / raw)
  To: gdb

Hi guys,

"cvs update -d" will make the src directory include a lot of other
softwares like binutils, sid and so on.

I want keep the directory just have the file of GDB.  I tried "cvs
update -dP".  But it still tried to checkout the files of other
softwares.

Could someone tell me how to update the all src directory and do not
co the files of other softwares.

Thanks,
Hui


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Question about "cvs update"
  2010-10-11  7:50 Question about "cvs update" Hui Zhu
@ 2010-10-11  7:56 ` Jan Kratochvil
  2010-10-11  8:10   ` Hui Zhu
  2010-10-11 15:25 ` Christopher Faylor
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Jan Kratochvil @ 2010-10-11  7:56 UTC (permalink / raw)
  To: Hui Zhu; +Cc: gdb

On Mon, 11 Oct 2010 09:49:56 +0200, Hui Zhu wrote:
> Could someone tell me how to update the all src directory and do not
> co the files of other softwares.

Yes, one should not use -d for the sourceware tree.

To handle the cases of new directories I do completely new checkouts nightly.
As I use CVS only for check-ins (and GIT for real work with the tree) it has
no problems.

`cvs checkout' into the existing tree should update it, possibly with the
right directories tracking.  But I was unable to set it up for sourceware.


Regards,
Jan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Question about "cvs update"
  2010-10-11  7:56 ` Jan Kratochvil
@ 2010-10-11  8:10   ` Hui Zhu
  0 siblings, 0 replies; 8+ messages in thread
From: Hui Zhu @ 2010-10-11  8:10 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb

On Mon, Oct 11, 2010 at 15:55, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
> On Mon, 11 Oct 2010 09:49:56 +0200, Hui Zhu wrote:
>> Could someone tell me how to update the all src directory and do not
>> co the files of other softwares.
>
> Yes, one should not use -d for the sourceware tree.
>
> To handle the cases of new directories I do completely new checkouts nightly.
> As I use CVS only for check-ins (and GIT for real work with the tree) it has
> no problems.
>
> `cvs checkout' into the existing tree should update it, possibly with the
> right directories tracking.  But I was unable to set it up for sourceware.
>
>
> Regards,
> Jan
>

Thanks Jan, I think I can use the git.  :)

Best,
Hui


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Question about "cvs update"
  2010-10-11  7:50 Question about "cvs update" Hui Zhu
  2010-10-11  7:56 ` Jan Kratochvil
@ 2010-10-11 15:25 ` Christopher Faylor
  2010-10-11 18:59   ` Steffen DETTMER
  2010-10-11 15:32 ` Daniel Jacobowitz
  2010-10-11 16:28 ` Dave Korn
  3 siblings, 1 reply; 8+ messages in thread
From: Christopher Faylor @ 2010-10-11 15:25 UTC (permalink / raw)
  To: Hui Zhu, gdb

On Mon, Oct 11, 2010 at 03:49:56PM +0800, Hui Zhu wrote:
>Hi guys,
>
>"cvs update -d" will make the src directory include a lot of other
>softwares like binutils, sid and so on.
>
>I want keep the directory just have the file of GDB.  I tried "cvs
>update -dP".  But it still tried to checkout the files of other
>softwares.
>
>Could someone tell me how to update the all src directory and do not
>co the files of other softwares.

cvs update -l
for f in */.; do
  (cd $f && exec cvs update -d)
done

cgf


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Question about "cvs update"
  2010-10-11  7:50 Question about "cvs update" Hui Zhu
  2010-10-11  7:56 ` Jan Kratochvil
  2010-10-11 15:25 ` Christopher Faylor
@ 2010-10-11 15:32 ` Daniel Jacobowitz
  2010-10-11 16:28 ` Dave Korn
  3 siblings, 0 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2010-10-11 15:32 UTC (permalink / raw)
  To: Hui Zhu; +Cc: gdb

On Mon, Oct 11, 2010 at 03:49:56PM +0800, Hui Zhu wrote:
> Hi guys,
> 
> "cvs update -d" will make the src directory include a lot of other
> softwares like binutils, sid and so on.
> 
> I want keep the directory just have the file of GDB.  I tried "cvs
> update -dP".  But it still tried to checkout the files of other
> softwares.
> 
> Could someone tell me how to update the all src directory and do not
> co the files of other softwares.

I cheat, like this:

cd gdb-checkout
ln -s . src
cvs co gdb

That will check out gdb using the same tag and cvsroot that was
previously used.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Question about "cvs update"
  2010-10-11  7:50 Question about "cvs update" Hui Zhu
                   ` (2 preceding siblings ...)
  2010-10-11 15:32 ` Daniel Jacobowitz
@ 2010-10-11 16:28 ` Dave Korn
  2010-10-11 16:43   ` Pedro Alves
  3 siblings, 1 reply; 8+ messages in thread
From: Dave Korn @ 2010-10-11 16:28 UTC (permalink / raw)
  To: Hui Zhu; +Cc: gdb

On 11/10/2010 08:49, Hui Zhu wrote:
> Hi guys,
> 
> "cvs update -d" will make the src directory include a lot of other
> softwares like binutils, sid and so on.
> 
> I want keep the directory just have the file of GDB.  I tried "cvs
> update -dP".  But it still tried to checkout the files of other
> softwares.
> 
> Could someone tell me how to update the all src directory and do not
> co the files of other softwares.

  I do something roughly(*) like:

ls -1d */CVS | cut -d/ -f1 | xargs cvs up -dP

... followed by a plain old "cvs up" to get the top-level files.  This can
easily be put into a shell alias or function definition in one of your shell
startup scripts.

    cheers,
      DaveK
-- 
(*) - Actually, I'm lazy.  I really do "ls -l" and take advantage of the
windows terminal's rectangular-block-copy-paste mode to select all the
directory names and paste them straight into the xargs invocation, but that's
not important right now.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Question about "cvs update"
  2010-10-11 16:28 ` Dave Korn
@ 2010-10-11 16:43   ` Pedro Alves
  0 siblings, 0 replies; 8+ messages in thread
From: Pedro Alves @ 2010-10-11 16:43 UTC (permalink / raw)
  To: gdb; +Cc: Dave Korn, Hui Zhu

On Monday 11 October 2010 17:51:17, Dave Korn wrote:
> On 11/10/2010 08:49, Hui Zhu wrote:
> > Hi guys,
> > 
> > "cvs update -d" will make the src directory include a lot of other
> > softwares like binutils, sid and so on.
> > 
> > I want keep the directory just have the file of GDB.  I tried "cvs
> > update -dP".  But it still tried to checkout the files of other
> > softwares.
> > 
> > Could someone tell me how to update the all src directory and do not
> > co the files of other softwares.
> 
>   I do something roughly(*) like:
> 
> ls -1d */CVS | cut -d/ -f1 | xargs cvs up -dP
> 
> ... followed by a plain old "cvs up" to get the top-level files.  This can
> easily be put into a shell alias or function definition in one of your shell
> startup scripts.

Irks.  I just do "cvs co" which knows to update instead of
checkout if you already have a tree, but wrapped in a tiny script
that I carry around to all my trees:

 $ cat /home/pedro/gdb/baseline/cvsup.sh 
 #!/bin/bash

 cvs -t -d :ext:palves@sourceware.org:/cvs/src co gdb

That's it!

To avoid hacks, I just have my sources in a directory
called literally "src".  E.g., I follow this layout:

 /home/pedro/gdb/baseline/src
 /home/pedro/gdb/baseline/build
 /home/pedro/gdb/baseline/cvsup.sh 

and 

 /home/pedro/gdb/foo-project/src
 /home/pedro/gdb/foo-project/build
 /home/pedro/gdb/foo-project/cvsup.sh 

etc.

When I want to update a tree, I just e.g.,

 $ cd /home/pedro/gdb/baseline
 $ ./cvsup.sh

When I want to create a new fresh checkout, I do:

 $ mkdir /home/pedro/gdb/fresh-project
 $ cd /home/pedro/gdb/fresh-project
 $ cp /home/pedro/gdb/baseline/cvsup.sh /home/pedro/gdb/fresh-project
 $ ./cvsup.sh

(or copy an existing tree)

I prefer copying the script file because sometimes I want to checkout
a specific date / tag / branch.  E.g.,

 $ cat /home/pedro/gdb/7_0/cvsup.sh
 #!/bin/bash
 cvs -t -z9 -d :ext:palves@sourceware.org:/cvs/src co -r gdb_7_0-branch gdb

-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Question about "cvs update"
  2010-10-11 15:25 ` Christopher Faylor
@ 2010-10-11 18:59   ` Steffen DETTMER
  0 siblings, 0 replies; 8+ messages in thread
From: Steffen DETTMER @ 2010-10-11 18:59 UTC (permalink / raw)
  To: gdb

* Christopher Faylor wrote on Mon, Oct 11, 2010 at 11:25 -0400:
> for f in */.; do

ohh, getting dirs with "*/." is just lovely! So simple! Cool! Thanks!

oki,

Steffen



 
About Ingenico: Ingenico is a leading provider of payment solutions, with over 15 million terminals deployed in more than 125 countries. Its 2,850 employees worldwide support retailers, banks and service providers to optimize and secure their electronic payments solutions, develop their offer of services and increase their point of sales revenue. More information on http://www.ingenico.com/.
 This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
 P Please consider the environment before printing this e-mail
 
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-11 18:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-11  7:50 Question about "cvs update" Hui Zhu
2010-10-11  7:56 ` Jan Kratochvil
2010-10-11  8:10   ` Hui Zhu
2010-10-11 15:25 ` Christopher Faylor
2010-10-11 18:59   ` Steffen DETTMER
2010-10-11 15:32 ` Daniel Jacobowitz
2010-10-11 16:28 ` Dave Korn
2010-10-11 16:43   ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox