vcpkg/versions/o-/outcome.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "5cc1c42701709adcc36c8fd94cd3f7a5bfaa779d",
"version": "2.2.8",
"port-version": 0
},
{
"git-tree": "47944a9cbc611b2c0b1d0a3acb1d0a38881dbc87",
"version": "2.2.7",
"port-version": 0
},
{
"git-tree": "504177d3c3f3d1a063db2ce6d12292141e874d37",
"version": "2.2.4",
"port-version": 1
},
{
"git-tree": "9e3ec2f8aff33b12210dc924ff285b3cf23abb2a",
"version": "2.2.4",
"port-version": 0
},
{
"git-tree": "527591e7e0e55bc20c74cdc5553c08635b350999",
"version": "2.2.3",
"port-version": 0
},
{
"git-tree": "2abc0cf7913b6db02a17f3b01f6e5744bd43a9ae",
"version-string": "2.2.2-20211208",
"port-version": 0
},
{
"git-tree": "31aada521fafc8169a891338a3af04fa4f658327",
"version-string": "2.2.2-20210922",
"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": "275bb74716bbeb4b09b1e97c442e0e085490c646",
"version-string": "2.2.0-release",
"port-version": 1
},
{
"git-tree": "e520721d50cf29957f37e793d28abff7544138d2",
"version-string": "2.2.0-release",
"port-version": 0
},
{
"git-tree": "77cd889f0b2157b6ae77982c30c8e17355d95245",
"version-string": "2.2.0-b9e664fb",
"port-version": 0
},
{
"git-tree": "33dc2e0d31074248a2313ff2eeecad075206d9bb",
"version-string": "2.1.3",
"port-version": 0
},
{
"git-tree": "b12b3ac86436c5ecbbfb207caa4c2ac54af02fe4",
"version-string": "2.1",
"port-version": 0
}
]
}