mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
dev: fixed perl script to support current build numbers
This commit is contained in:
parent
4635563f44
commit
52ee309b58
1 changed files with 4 additions and 3 deletions
|
|
@ -17,9 +17,10 @@ foreach $tag (@lines)
|
|||
{
|
||||
my $orig_num = $tag;
|
||||
my $num = $tag;
|
||||
if ($num =~ m/(\d+)\.(\d+).(\d+)v(\d+)/img)
|
||||
# 1.4.52-V7-beta9
|
||||
if ($num =~ m/(\d+)\.(\d+).(\d+)-v(\d+)-beta(\d+)/img)
|
||||
{
|
||||
$num = $1 * 2000 + $2 * 100 + $3 * 20 + $4;
|
||||
$num = $1 * 20000 + $2 * 1000 + $3 * 200 + $4 * 10 + $5;
|
||||
$order_of_tags {$num} = $tag;
|
||||
}
|
||||
}
|
||||
|
|
@ -171,4 +172,4 @@ if (exists ($new_order{$cmd}))
|
|||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue