Code

Make some improvements to the osx-build.sh Mac OS X packaging script so
[inkscape.git] / packaging / mkNEWS
index 31c0fc0dcae6f45aac22ac7fd0b9d3b12b4cb58c..7e17e90136beb9453eaa867050073369dfea19a0 100644 (file)
@@ -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 <release-number>\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;
 }