vcpkg/versions/s-/sol2.json

75 lines
1.8 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "803f41c884606248b07d343e13716c1135da7957",
"version": "3.3.1",
"port-version": 0
},
{
"git-tree": "115cb8217bb876cfb71fadec889faa25954db8b1",
"version": "3.3.0",
"port-version": 0
},
{
"git-tree": "fca1a728c9f2ff6db12a00fafeae82f69a903b48",
"version-string": "3.2.2",
"port-version": 2
},
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": "1dd17eacaccf75a326029df0e26ad1b20c940ad5",
"version-string": "3.2.2",
"port-version": 1
},
{
"git-tree": "6effd490f0dc787aec07e064241407658ace41ce",
"version-string": "3.2.2",
"port-version": 0
},
{
"git-tree": "9502998e1c595718d83adf07ea860908e5e2e15c",
"version-string": "3.2.1",
"port-version": 0
},
{
"git-tree": "029ac93b1620f70349a0e3f57a1191f5ddbd8ec3",
"version-string": "3.2.0",
"port-version": 0
},
{
"git-tree": "8240f267b16f344994b1ce3da03a14fda6908e9e",
"version-string": "3.0.3-2",
"port-version": 0
},
{
"git-tree": "9e0e54152f08f6b7a637f9c15a689701f903c2d5",
"version-string": "3.0.3-1",
"port-version": 0
},
{
"git-tree": "524786c812705e461c55028c488f5a6330f33f7c",
"version-string": "3.0.3",
"port-version": 0
},
{
"git-tree": "0cc6d31b03d6dc191ebba1daabaad50d41365081",
"version-string": "3.0.2",
"port-version": 0
},
{
"git-tree": "84a35f873e2ffc4a0644c3441c506830060693fd",
"version-string": "2.20.6",
"port-version": 0
},
{
"git-tree": "3e2492a7eaa269579e03581e382b832cf1de0e82",
"version-string": "2.20.4",
"port-version": 0
},
{
"git-tree": "a675b97fa55ff48245ac9363b32d098e5db181d5",
"version-string": "2.20.3-1",
"port-version": 0
}
]
}