From ff31b395d471c7ba841b3e46936712e030f4805e Mon Sep 17 00:00:00 2001 From: tweenk Date: Mon, 28 Sep 2009 21:34:02 +0000 Subject: [PATCH] Fix the mkNEWS script, and make it use w3m, which is nowadays more common than lynx. --- packaging/mkNEWS | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packaging/mkNEWS b/packaging/mkNEWS index 96485dbfc..7e17e9013 100644 --- a/packaging/mkNEWS +++ b/packaging/mkNEWS @@ -11,9 +11,7 @@ if (@ARGV < 1) { my $rel = shift @ARGV; -$rel =~ s/\.//; - -my @page = `lynx -dump $wiki/ReleaseNotes$rel`; +my @page = `w3m -dump $wiki/Release_notes/$rel`; print "$#page lines\n"; @@ -22,9 +20,9 @@ foreach my $line (@page) { $line =~ s/\[\[\d+\]edit\]//g; - last if $line =~ /^ Previous releases/; + last if $line =~ /^\s*Previous releases/; - if ($line =~ /^\s+Inkscape 0\.46/) { + if ($line =~ /^\s*Inkscape $rel/) { $seen_overview = 1; } next unless $seen_overview; -- 2.30.2