From owner-freebsd-ports@FreeBSD.ORG Wed Sep 20 21:14:28 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6F6016A403 for ; Wed, 20 Sep 2006 21:14:28 +0000 (UTC) (envelope-from rossiya@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DA0643D45 for ; Wed, 20 Sep 2006 21:14:27 +0000 (GMT) (envelope-from rossiya@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so726784nfc for ; Wed, 20 Sep 2006 14:14:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lsu+UWRQ42WoTMQshPUiyFmQ99B9iVSWiJMY6HWaNAKL/qdtUIoNrb1UMkxmTc879yZTDl4rBAc4/bwt2YEsxsnxzEXEL2roLpaWfbdpkCm74m6QyMUfRqBV3boeyuaj9EV4XgR5IQ+PEIp8MhwoHk04xbAMPW6GT3LV2CadGOY= Received: by 10.48.254.1 with SMTP id b1mr20532989nfi; Wed, 20 Sep 2006 14:14:26 -0700 (PDT) Received: by 10.48.48.4 with HTTP; Wed, 20 Sep 2006 14:14:26 -0700 (PDT) Message-ID: <28a99ba50609201414y274d18f3wdd2c08059d2dd34d@mail.gmail.com> Date: Wed, 20 Sep 2006 14:14:26 -0700 From: MC To: freebsd-ports@freebsd.org In-Reply-To: <20060918223639.GA1946@icarus.home.lan> MIME-Version: 1.0 References: <28a99ba50609181526s6a3ab59btfca1d6517b89c951@mail.gmail.com> <20060918223639.GA1946@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Basic Diff question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 21:14:29 -0000 I made a few minor chnages and now the diff bash script should put all the new files into the patch as well, while naming the old files with the '.orig' suffix virtual7:# cat diffOMatic.sh #Takes two arguments which are old/ and new/ respectively diffOMatic() { ( cd $2/; find . -type f ) | while read f; do #echo $f if [ -f "$1/$f" ]; then cp -n $1/$f "$2/$f".orig fi; touch "$2/$f".orig ( cd $2/; diff --ignore-all-space -u "$f".orig $f; ) rm "$2/$f".orig done } diffOMatic work/FFFF323-src/ FFFF323-src/