From owner-freebsd-questions@FreeBSD.ORG Wed May 26 09:55:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FAB716A4CF for ; Wed, 26 May 2004 09:55:07 -0700 (PDT) Received: from out007.verizon.net (out007pub.verizon.net [206.46.170.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0095A43D45 for ; Wed, 26 May 2004 09:55:07 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from [192.168.1.3] ([68.161.84.3]) by out007.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040526165410.GOFG28276.out007.verizon.net@[192.168.1.3]>; Wed, 26 May 2004 11:54:10 -0500 Message-ID: <40B4CBAC.3090207@mac.com> Date: Wed, 26 May 2004 12:54:04 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: joel.criqui@bt.com References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out007.verizon.net from [68.161.84.3] at Wed, 26 May 2004 11:54:09 -0500 cc: freebsd-questions@freebsd.org Subject: Re: patch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2004 16:55:07 -0000 joel.criqui@bt.com wrote: > I have a source ( in fact it's many sources) divided in many directories; > and I have to patch it with a diff file. But when I perform the patch command, > the computers wants to know which file I want to patch; but there are a lot of > sources, and many of them have to be patched. So is there any option which can > specify that all sources must be modified ? If you create the diff recursively (the -r option), it will record the directory structure so that patch knows how to find each of the changed files. Create the diff from the same relative position as the patch command will run and you should be fine, otherwise consider the -d and -p options to patch... -- -Chuck