vcpkg/versions/m-/mbedtls.json

85 lines
2.1 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "b8ca11fc0285875347dc1203913af7f84f9c7cad",
"version": "2.28.7",
"port-version": 0
},
{
"git-tree": "909516904f06e3379f7ac434b967cb165d8020c2",
"version": "2.28.5",
"port-version": 0
},
{
"git-tree": "f6fd876a24f60e3034438c6793627be091ab6426",
"version": "2.28.1",
"port-version": 0
},
{
"git-tree": "50e6870207f6a1f0b1e2197978b4403de775eac2",
"version": "2.28.0",
"port-version": 0
},
{
"git-tree": "676b36c2f6fc72a2fbbbe521ae46fdefe5db67ca",
"version": "2.24.0",
"port-version": 4
},
Bulk convert control files. (#19986) ``` function Convert-Control { Param($full) .\vcpkg.exe format-manifest $full $root = $full.Substring(0, $full.Length - 7) # CONTROL $new = $root + 'vcpkg.json' $content = Get-Content -Raw $new $asJson = ConvertFrom-Json $content -AsHashtable -Depth 100 $oldVersion = $asJson['port-version'] if ($null -eq $oldVersion) { $oldVersionFull = $asJson['version-string'] Write-Host "Got version $oldVersionFull" $match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$') if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) { $newFullVersion = [string]$match.Groups[1].Value $oldVersion = [int]$match.Groups[2].Value Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion" $newVersion = $oldVersion + 1 $asJson['version-string'] = $newFullVersion Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion" } else { Write-Host "No previous version for $full -- setting 1" $newVersion = 1 } } else { $newVersion = [int]$oldVersion + 1 Write-Host "New version for $full : $newVersion" } $asJson['port-version'] = $newVersion $content = ConvertTo-Json $asJson -Depth 100 Set-Content -Path $new -Value $content .\vcpkg.exe format-manifest $new } Get-ChildItem ports\CONTROL -Recurse | Foreach-Object { Convert-Control $_.FullName } git commit -am "this message" .\vcpkg.exe x-add-version -all git commit -a --amend ```
2021-09-09 16:24:04 +08:00
{
"git-tree": "a68475211755b3999de8cb2ec1d2fdfe9bb8ab10",
"version-string": "2.24.0",
"port-version": 3
},
{
"git-tree": "f1591b930b769b43c14a193282eb85e9a7c51a47",
"version-string": "2.24.0",
"port-version": 2
},
{
"git-tree": "8b510a700284731a6f552ff2cd874794af4032ff",
"version-string": "2.24.0",
"port-version": 1
},
{
"git-tree": "d5a4ee1c525b9ac5197b86bfe553a1909ce9afba",
"version-string": "2.24.0",
"port-version": 0
},
{
"git-tree": "a35e1a54c5d31e8ccab0117701402c9def267cdc",
"version-string": "2.16.3-1",
"port-version": 0
},
{
"git-tree": "7ad457ed5e067dc3b10a43c0820be065d081e242",
"version-string": "2.16.3",
"port-version": 0
},
{
"git-tree": "3c353cbdd327d54fe0b94e5ca8395b8c4a184f31",
"version-string": "2.16.2",
"port-version": 0
},
{
"git-tree": "0e219bef6b56d1650c6b21b604383861d397cad7",
"version-string": "2.15.1",
"port-version": 0
},
{
"git-tree": "eb1ec65bc6251b470991182e2184dc5c575169e3",
"version-string": "2.13.1",
"port-version": 0
},
{
"git-tree": "8576d9c7a8e92c598c0a47950f71bd4e50cbb2b3",
"version-string": "2.12.0",
"port-version": 0
},
{
"git-tree": "d151786b2020882f2711b617872b7f13234bd03a",
"version-string": "2.6.1",
"port-version": 0
}
]
}