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")
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...reebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"