Modified other version comparison to be string based too
authorNigel Metheringham <nigel@exim.org>
Fri, 26 Oct 2012 20:30:23 +0000 (21:30 +0100)
committerNigel Metheringham <nigel@exim.org>
Fri, 26 Oct 2012 20:30:23 +0000 (21:30 +0100)
script/gen.pl

index 61b7cea9c835a3febe0764f42733ed5536bc7370..298fb1436410680045d5bcdc24ecad6894c001f4 100755 (executable)
@@ -411,7 +411,7 @@ sub old_docs_versions {
     if ( !exists $cache{old_docs_versions} ) {
         my @versions;
         foreach ( glob("$opt{docroot}/exim-html-*") ) {
     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 ];
     }
         }
         $cache{old_docs_versions} = [ reverse sort { $a cmp $b } @versions ];
     }