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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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");
}
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFATnvBCkn+/eutqCoRApuNAKCqhV3I+gRZFJGxSnHzo4NTNN1IGACeLFtd
igNQd+kArTKn7pQ9vO73idk=
=DcFs
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040310022153.GC5472>
