vcpkg/versions/o-/openssl-uwp.json

85 lines
2.1 KiB
JSON
Raw Permalink Normal View History

{
"versions": [
{
"git-tree": "312a6b6d7401200193aaeb960a678b85085c777d",
"version-string": "deprecated",
"port-version": 0
},
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": "1a51fbd29a373e9c57ed233d581112359109a234",
"version-string": "1.1.1h",
"port-version": 2
},
{
"git-tree": "84398c4b851a28c5ca622c249d51c17d023518b7",
"version-string": "1.1.1h",
"port-version": 1
},
{
"git-tree": "f84d47f34d9789ef793f45431c06ed4085f43e34",
"version-string": "1.1.1h",
"port-version": 0
},
{
"git-tree": "e3a2926149036f4d8aa134ce92a8517702ee37c0",
"version-string": "1.1.1h",
"port-version": 1
},
{
"git-tree": "a69449619d734794b6385c36b3a5d00f108d9dd3",
"version-string": "1.1.1h",
"port-version": 0
},
{
"git-tree": "fba260d6fcf7baa0e925c0a7e551f9d6e1082dcc",
"version-string": "1.1.1g",
"port-version": 1
},
{
"git-tree": "87f250780a2f75d91e9ed8c0b4ba3a18669780a5",
"version-string": "1.1.1g",
"port-version": 0
},
{
"git-tree": "1bcb70f892ae3a4a8c221f39a5139b479a407e7f",
"version-string": "1.1.1d-1",
"port-version": 0
},
{
"git-tree": "fa8cdbc92010c7e9b6e30f41cb0f543e95023973",
"version-string": "1.1.1d",
"port-version": 0
},
{
"git-tree": "8d0505ed5d06120e35c08eb9296b19e8bb8506eb",
"version-string": "1.0.2r-1",
"port-version": 0
},
{
"git-tree": "677fd281086ecd5e0a6801306f2741e7718c8093",
"version-string": "1.0.2r",
"port-version": 0
},
{
"git-tree": "8b88b0ffaf55e0d3804807cf92c0e57f579b9c73",
"version-string": "1.0.2q-winrt-2",
"port-version": 0
},
{
"git-tree": "85472d04fa7e3002ccdfc7729557a9c1bd583c60",
"version-string": "1.0.2q-winrt-1",
"port-version": 0
},
{
"git-tree": "5596ed33ca4b2be4d1d190b963ed6f19cf45b510",
"version-string": "1.0.2q-winrt",
"port-version": 0
},
{
"git-tree": "8b22d47210619fd3b6a38bdc999a6f6cb7ee23b1",
"version-string": "1.0.2l-winrt",
"port-version": 0
}
]
}