From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 28 20:20:22 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0819E106566B; Thu, 28 Feb 2008 20:20:22 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (smtp.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 7FB578FC15; Thu, 28 Feb 2008 20:20:21 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m1SKKINp032254; Thu, 28 Feb 2008 13:20:18 -0700 (MST) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m1SKKEc0091376; Thu, 28 Feb 2008 13:20:14 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m1SKKEbZ091372; Thu, 28 Feb 2008 13:20:14 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <18375.6014.235239.783773@gromit.timing.com> Date: Thu, 28 Feb 2008 13:20:14 -0700 From: John E Hein To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-Reply-To: <86r6ew27r6.fsf@ds4.des.no> References: <18373.33662.614583.231211@gromit.timing.com> <20080227201203.GA1101@zaphod.nitro.dk> <86fxvd18te.fsf@ds4.des.no> <18374.55925.429800.520009@gromit.timing.com> <86r6ew27r6.fsf@ds4.des.no> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: hackers@FreeBSD.org, "Simon L. Nielsen" Subject: Re: cvs tag renaming after repo copy X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 20:20:22 -0000 Dag-Erling Sm=F8rgrav wrote at 20:36 +0100 on Feb 28, 2008: > http://people.freebsd.org/~des/software/fixtags > = > Unfortunately, Apache is set up in such a manner that I can't set the > correct mime type (if I name it fixtags.pl, it thinks it's a CGI scrip= t > and gives you a 403...) Thanks. I did something similar (not using cvs ops, but rather directly munging the ,v file) with awk, but I had issues with binary files. I also didn't have any fancy exclude/include feature (nice!) or try to guess which tags are vendor tags (it looks like you're just trying to match a '.' - why does that make it a vendor tag?). Minor issue... syntax error at /tmp/jhein/fixtags line 68, near "&&" syntax error at /tmp/jhein/fixtags line 68, near "@exclude)" syntax error at /tmp/jhein/fixtags line 69, near "@include)" syntax error at /tmp/jhein/fixtags line 74, near "} else" --- fixtags.orig 2008-02-28 13:11:33.000000000 -0700 +++ fixtags 2008-02-28 13:10:16.000000000 -0700 @@ -64,7 +64,7 @@ } elsif ($phase =3D=3D 2) { if (m/^\t([^:]+):([0-9.]+);?\s*$/) { $tag =3D $1; - if ($tag !~ m/\./ && # skip vendor tags + if ($tag !~ m/\./ # skip vendor tags && (!@exclude || !grep({ $_ eq $tag } @exclude)) && (!@include || grep({ $_ eq $tag } @include))) { print(" $tag -> old_$tag\n")