This commit is contained in:
luca.mazzoleni
2024-09-18 11:48:38 +02:00
parent 1283ce0c3a
commit bfa37e86c1
2 changed files with 5 additions and 46 deletions
+4 -46
View File
@@ -141,52 +141,10 @@ variables:
Write-Output $env:MACH_VERS
# calcolo versione formato numerico
$versionMonthTxt = $env:MACH_VERS.Substring(3,1)
# calcolo mese formato numerico
$versionMonthNum = 999
if ( $versionMonthTxt -eq "a") {
# gennaio
$versionMonthNum = 1
}elseif ( $versionMonthTxt -eq "b") {
# febbraio
$versionMonthNum = 2
}elseif ( $versionMonthTxt -eq "c") {
# marzo
$versionMonthNum = 3
}elseif ( $versionMonthTxt -eq "d") {
# aprile
$versionMonthNum = 4
}elseif ( $versionMonthTxt -eq "e") {
# maggio
$versionMonthNum = 5
}elseif ( $versionMonthTxt -eq "f") {
# giugno
$versionMonthNum = 6
}elseif ( $versionMonthTxt -eq "g") {
# luglio
$versionMonthNum = 7
}elseif ( $versionMonthTxt -eq "h") {
# agosto
$versionMonthNum = 8
}elseif ( $versionMonthTxt -eq "i") {
# settembre
$versionMonthNum = 9
}elseif ( $versionMonthTxt -eq "j") {
# ottobre
$versionMonthNum = 10
}elseif ( $versionMonthTxt -eq "k") {
# novembre
$versionMonthNum = 11
}elseif ( $versionMonthTxt -eq "l") {
# dicembre
$versionMonthNum = 12
}
$versionNum1 = $env:MACH_VERS.Substring(0,1)
$versionNum2 = $env:MACH_VERS.Substring(1,1)
$versionNum3 = $versionMonthNum
$versionNum4 = $env:MACH_VERS.Substring(3,3)
$env:MACH_VERS_NUM = $versionNum1 + "." + $versionNum2 + "." + $versionNum3 + "." + $versionNum4
$fPath = "$env:MACH_NAME.mlde";
$vLine = Select-String -path $fPath -Pattern 'PP_NVER';
$comp = $vLine -split "=";
$env:MACH_VERS = $comp[1].Replace("'","").Trim()
# display versione formato numerico
Write-Output $env:MACH_VERS_NUM
+1
View File
@@ -69,6 +69,7 @@ require( 'EmtGenerator')
EgtEnableDebug( false)
PP_VER = '2.6i5'
PP_NVER = '2.6.9.5'
MIN_MACH_VER = '2.5k1'
MACH_NAME = 'Essetre-FAST'