From ab2a2de2797dab2442564adfd92adbd28830ad58 Mon Sep 17 00:00:00 2001 From: bryce Date: Tue, 11 Mar 2008 04:31:34 +0000 Subject: [PATCH] Fixing to work with current wiki format --- packaging/mkNEWS | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; } -- 2.30.2