diff --git a/packaging/mkNEWS b/packaging/mkNEWS
index 31c0fc0dcae6f45aac22ac7fd0b9d3b12b4cb58c..7e17e90136beb9453eaa867050073369dfea19a0 100644 (file)
--- a/packaging/mkNEWS
+++ b/packaging/mkNEWS
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 <release-number>\n";
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;
}