summaryrefslogtreecommitdiffstats
path: root/packaging/mkNEWS
blob: 495d09283953779babfb82f5629f3fc5ebc2f6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/perl

use strict;
use warnings;

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 = `lynx -dump $wiki?title=ReleaseNotes$rel`;

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/) {
        $seen_overview = 1;
    }
    next unless $seen_overview;

    $line =~ s/\[\d+\](\w)/$1/g;

    print $line;
}

print "\nFor information on prior releases, please see:\n";
print "    $wiki/Inkscape\n";