make_version_h.pl: support Debian backports

This commit is contained in:
Marco d'Itri 2014-07-25 03:31:30 +02:00
parent 2d55a4e992
commit d83f558c72

View File

@ -12,7 +12,7 @@ close($fh) or die "close($changelog): $!";
my ($ver) = $line =~ /^whois \s+ \( ( [^\)]+ ) \) \s+ \S+/x;
die "Version number not found in $changelog!\n" if not $ver;
$ver =~ s/ ( ~deb\d+.* | ubuntu\d+ | \+dyson\d+ ) $//x;
$ver =~ s/ ( ~bpo\d+\+\d+ | ~deb\d+.* | ubuntu\d+ | \+dyson\d+ ) $//x;
# The version number must not deviate from this format or the -V option
# to RIPE-like servers will break. If needed, update the previous regexp.