Dag-Erling Smørgrav 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 script
 > 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 == 2) {
            if (m/^\t([^:]+):([0-9.]+);?\s*$/) {
                $tag = $1;
-               if ($tag !~ m/\./ && # skip vendor tags
+               if ($tag !~ m/\./ # skip vendor tags
                    && ([EMAIL PROTECTED] || !grep({ $_ eq $tag } @exclude))
                    && ([EMAIL PROTECTED] || grep({ $_ eq $tag } @include))) {
                    print("    $tag -> old_$tag\n")
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  • cvs t... John Hein
    • ... Giorgos Keramidas
      • ... John Hein
        • ... Giorgos Keramidas
        • ... Amol Dharmadhikar i अमोल धर ्माध ीकारी
          • ... John Hein
    • ... Simon L. Nielsen
      • ... Dag-Erling Smørgrav
        • ... John E Hein
          • ... Dag-Erling Smørgrav
            • ... John E Hein
              • ... John E Hein
              • ... Dag-Erling Smørgrav
        • ... Simon L. Nielsen
          • ... Skip Ford

Reply via email to