X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=tools%2Furl-pattern-translator.pl;h=5477a87600abacfcdfd781eec8f3af79f1b1bbf7;hp=4a7868762016c3d447f6d317c4c3e8565ebdfd90;hb=5d67369224f780b21d94cacf31dbcdf288c7ed6c;hpb=4a7bcb1cedd46a7adf0fe09e99ae7b15300d6c78 diff --git a/tools/url-pattern-translator.pl b/tools/url-pattern-translator.pl index 4a786876..5477a876 100755 --- a/tools/url-pattern-translator.pl +++ b/tools/url-pattern-translator.pl @@ -15,9 +15,6 @@ # # url-pattern-translator.pl old.action > new.action # -# Only convert your files once, or, as RoboCop used to say, -# there will be... trouble. -# # Copyright (c) 2008 Fabian Keil # # Permission to use, copy, modify, and distribute this software for any @@ -94,7 +91,11 @@ sub looks_interesting($) { $type_to_skip = "whitespace"; - } elsif (m@^\s*TAG:@) { + } elsif (m@^\s*CLIENT-TAG:@i) { + + $type_to_skip = "client tag patttern"; + + } elsif (m@^\s*TAG:@i) { $type_to_skip = "tag patttern"; @@ -106,6 +107,10 @@ sub looks_interesting($) { $type_to_skip = "predefined settings"; + } elsif (m@^\s*PCRE-HOST-PATTERN:@i) { + + $type_to_skip = "already converted pcre host patttern"; + } #p("Skipping " . $type_to_skip . ": " . $_) if defined $type_to_skip;