From: bryce Date: Tue, 11 Mar 2008 04:31:34 +0000 (+0000) Subject: Fixing to work with current wiki format X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ab2a2de2797dab2442564adfd92adbd28830ad58;p=inkscape.git Fixing to work with current wiki format --- diff --git a/packaging/mkNEWS b/packaging/mkNEWS index 495d09283..96485dbfc 100644 --- a/packaging/mkNEWS +++ b/packaging/mkNEWS @@ -13,20 +13,22 @@ my $rel = shift @ARGV; $rel =~ s/\.//; -my @page = `lynx -dump $wiki?title=ReleaseNotes$rel`; +my @page = `lynx -dump $wiki/ReleaseNotes$rel`; + +print "$#page lines\n"; my $seen_overview = 0; foreach my $line (@page) { - last if $line =~ /^Previous releases/; - next if $line =~ /\[\[\d+\]edit\]/; - if ($line =~ /^Inkscape .*0.45/ || $line =~ /^Inkscape .* changes with respect to/) { + $line =~ s/\[\[\d+\]edit\]//g; + + last if $line =~ /^ Previous releases/; + + if ($line =~ /^\s+Inkscape 0\.46/) { $seen_overview = 1; } next unless $seen_overview; - $line =~ s/\[\d+\](\w)/$1/g; - print $line; }