X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=utils%2Ffilter2docs.pl;h=cd69d02e1b367690aed76e19d101870e531e15dc;hp=ea326ed85ce712ea8d87f5c3210f4b84f2c46049;hb=801a5d8e387c4474deb9c8a49c0f2e5e115eec49;hpb=72081f829de368392d04076728f8c991178c0080;ds=inline diff --git a/utils/filter2docs.pl b/utils/filter2docs.pl index ea326ed8..cd69d02e 100755 --- a/utils/filter2docs.pl +++ b/utils/filter2docs.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl -w -# $Id: filter2docs.pl,v 1.1.2.1 2003/03/16 15:32:44 oes Exp $ -# $Source: /cvsroot/ijbswa/current/utils/Attic/filter2docs.pl,v $ +# $Id: filter2docs.pl,v 1.2 2006/07/18 14:49:14 david__schmidt Exp $ +# $Source: /cvsroot/ijbswa/current/utils/filter2docs.pl,v $ # Parse the filter names and descriptions from a filter file and # spit out copy&paste-ready markup for the various places in @@ -13,13 +13,28 @@ open(INPUT, "< $ARGV[0]") or die "Coudln't open input file $ARGV[0] because $!\n while () { if (/^FILTER: ([-\w]+) (.*)$/) { $comment_lines .= "# $1:" . (" " x (20-length($1))) . "$2\n"; - $action_lines .= "-filter{$1} \\\n"; + $action_lines .= "+filter{$1} \\\n"; $sgml_source_1 .= " \n \n +filter{$1}" . (" " x (20-length($1))) . "# $2\n \n"; $sgml_source_2 .= " -filter{$1} \\\n"; } } -print("Comment lines for default.action:\n\n$comment_lines\n\nBlock of filter actions for" - ." standard.action:\n\n$action_lines\n\nSGML Source for AF chapter in U-M:" . - "\n\n$sgml_source_1\n\nSGML Source for AF Tutorial chapter in U-M\n\n$sgml_source_2\n"); +print <