From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9502 invoked by alias); 11 Oct 2010 16:28:28 -0000 Received: (qmail 9482 invoked by uid 22791); 11 Oct 2010 16:28:24 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Oct 2010 16:28:20 +0000 Received: by wyf28 with SMTP id 28so205761wyf.0 for ; Mon, 11 Oct 2010 09:28:17 -0700 (PDT) Received: by 10.216.23.129 with SMTP id v1mr3829570wev.49.1286814497302; Mon, 11 Oct 2010 09:28:17 -0700 (PDT) Received: from [192.168.2.99] (cpc2-cmbg8-0-0-cust61.5-4.cable.virginmedia.com [82.6.108.62]) by mx.google.com with ESMTPS id p52sm4533814weq.20.2010.10.11.09.28.15 (version=SSLv3 cipher=RC4-MD5); Mon, 11 Oct 2010 09:28:16 -0700 (PDT) Message-ID: <4CB34085.1010102@gmail.com> Date: Mon, 11 Oct 2010 16:28:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Hui Zhu CC: gdb@sourceware.org Subject: Re: Question about "cvs update" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00032.txt.bz2 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.