diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 274250f..000f8e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/TestMachine.mlde b/TestMachine.mlde index f015d40..5cffa79 100644 --- a/TestMachine.mlde +++ b/TestMachine.mlde @@ -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'