From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 18:21:58 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 1808316A4CE for ; Tue, 9 Mar 2004 18:21:58 -0800 (PST) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D735143D45 for ; Tue, 9 Mar 2004 18:21:57 -0800 (PST) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 9FCB15C0C; Wed, 10 Mar 2004 03:21:53 +0100 (CET) Date: Wed, 10 Mar 2004 03:21:53 +0100 From: Simon Barner To: "Shaun T. Erickson" Message-ID: <20040310022153.GC5472@zi025.glhnet.mhn.de> References: <404DFE56.6030204@ste-land.com> <20040310021348.GB5472@zi025.glhnet.mhn.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6Nae48J/T25AfBN4" Content-Disposition: inline In-Reply-To: <20040310021348.GB5472@zi025.glhnet.mhn.de> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: freebsd-questions@freebsd.org Subject: Re: How do I add a local patch to a port? 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, 10 Mar 2004 02:21:58 -0000 --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Argh the mailing list software stripped the attachment, so here it is: #!/usr/bin/perl -w use strict; my $origfile; my $file; my $patch; my @files = `find . -name "*.orig"`; foreach $origfile (@files) { chomp ($origfile); $origfile =~ s/^\.\///; $file = $origfile; $file =~ s/\.orig$//; $patch = $file; $patch =~ s/\//::/g; $patch = "patch-" . $patch; system ("diff -u $origfile $file > $patch\n"); } --6Nae48J/T25AfBN4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATnvBCkn+/eutqCoRApuNAKCqhV3I+gRZFJGxSnHzo4NTNN1IGACeLFtd igNQd+kArTKn7pQ9vO73idk= =DcFs -----END PGP SIGNATURE----- --6Nae48J/T25AfBN4--