Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 13:20:14 -0700
From:      John E Hein <jhein@timing.com>
To:        =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
Cc:        hackers@FreeBSD.org, "Simon L. Nielsen" <simon@FreeBSD.org>
Subject:   Re: cvs tag renaming after repo copy
Message-ID:  <18375.6014.235239.783773@gromit.timing.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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")



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