summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/gen.pl
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cmdline-opts/gen.pl')
-rwxr-xr-xdocs/cmdline-opts/gen.pl20
1 files changed, 14 insertions, 6 deletions
diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl
index 1e9f84696..eb9b32849 100755
--- a/docs/cmdline-opts/gen.pl
+++ b/docs/cmdline-opts/gen.pl
@@ -135,13 +135,17 @@ sub protocols {
sub too_old {
my ($version)=@_;
+ my $a = 999999;
if($version =~ /^(\d+)\.(\d+)\.(\d+)/) {
- my $a = $1 * 1000 + $2 * 10 + $3;
- if($a < 7300) {
- # we consider everything before 7.30.0 to be too old to mention
- # specific changes for
- return 1;
- }
+ $a = $1 * 1000 + $2 * 10 + $3;
+ }
+ elsif($version =~ /^(\d+)\.(\d+)/) {
+ $a = $1 * 1000 + $2 * 10;
+ }
+ if($a < 7300) {
+ # we consider everything before 7.30.0 to be too old to mention
+ # specific changes for
+ return 1;
}
return 0;
}
@@ -231,6 +235,10 @@ sub single {
print STDERR "$f:$line:1:ERROR: no 'Example:' present\n";
exit 2;
}
+ if(!$added) {
+ print STDERR "$f:$line:1:ERROR: no 'Added:' version present\n";
+ exit 2;
+ }
last;
}
else {