git://git.exim.org
/
exim-website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c752504
)
Changed version comparison to be string based
author
Nigel Metheringham
<nigel@exim.org>
Fri, 26 Oct 2012 20:28:07 +0000
(21:28 +0100)
committer
Nigel Metheringham
<nigel@exim.org>
Fri, 26 Oct 2012 20:28:07 +0000
(21:28 +0100)
script/gen.pl
patch
|
blob
|
history
diff --git
a/script/gen.pl
b/script/gen.pl
index 1a5f6acefe2bd7d5f328f1e76b2e79424ef631f5..61b7cea9c835a3febe0764f42733ed5536bc7370 100755
(executable)
--- a/
script/gen.pl
+++ b/
script/gen.pl
@@
-413,7
+413,7
@@
sub old_docs_versions {
foreach ( glob("$opt{docroot}/exim-html-*") ) {
push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_;
}
foreach ( glob("$opt{docroot}/exim-html-*") ) {
push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_;
}
- $cache{old_docs_versions} = [ reverse sort { $a
<=>
$b } @versions ];
+ $cache{old_docs_versions} = [ reverse sort { $a
cmp
$b } @versions ];
}
return @{ $cache{old_docs_versions} };
}
}
return @{ $cache{old_docs_versions} };
}