X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=packaging%2FmkNEWS;h=7e17e90136beb9453eaa867050073369dfea19a0;hb=3c581d41c74a28556a4f251a41a78d98c30fc494;hp=31c0fc0dcae6f45aac22ac7fd0b9d3b12b4cb58c;hpb=d449a6d3082a6c8e84a76f53682d0a22fdb9bdeb;p=inkscape.git diff --git a/packaging/mkNEWS b/packaging/mkNEWS index 31c0fc0dc..7e17e9013 100644 --- a/packaging/mkNEWS +++ b/packaging/mkNEWS @@ -3,7 +3,7 @@ use strict; use warnings; -my $wiki = "http://wiki.inkscape.org:8080/wiki/index.php"; +my $wiki = "http://wiki.inkscape.org/wiki/index.php"; if (@ARGV < 1) { print "Usage: $0 \n"; @@ -11,22 +11,22 @@ if (@ARGV < 1) { my $rel = shift @ARGV; -$rel =~ s/\.//; +my @page = `w3m -dump $wiki/Release_notes/$rel`; -my @page = `lynx -dump $wiki?title=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 .*overview/) { + $line =~ s/\[\[\d+\]edit\]//g; + + last if $line =~ /^\s*Previous releases/; + + if ($line =~ /^\s*Inkscape $rel/) { $seen_overview = 1; } next unless $seen_overview; - $line =~ s/\[\d+\](\w)/$1/g; - print $line; }