From: Nigel Metheringham Date: Fri, 26 Oct 2012 20:30:23 +0000 (+0100) Subject: Modified other version comparison to be string based too X-Git-Tag: exim-4_89_1~41 X-Git-Url: https://git.exim.org/exim-website.git/commitdiff_plain/d54be666e66c1211c652e7c7997a9729a5bf2a1f Modified other version comparison to be string based too --- diff --git a/script/gen.pl b/script/gen.pl index 61b7cea..298fb14 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -411,7 +411,7 @@ sub old_docs_versions { if ( !exists $cache{old_docs_versions} ) { my @versions; foreach ( glob("$opt{docroot}/exim-html-*") ) { - push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_; + push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 lt $opt{latest} && -d $_; } $cache{old_docs_versions} = [ reverse sort { $a cmp $b } @versions ]; }