Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2004 03:21:53 +0100
From:      Simon Barner <barner@in.tum.de>
To:        "Shaun T. Erickson" <ste@ste-land.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do I add a local patch to a port?
Message-ID:  <20040310022153.GC5472@zi025.glhnet.mhn.de>
In-Reply-To: <20040310021348.GB5472@zi025.glhnet.mhn.de>
References:  <404DFE56.6030204@ste-land.com> <20040310021348.GB5472@zi025.glhnet.mhn.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040310022153.GC5472>