vcpkg/versions/m-/msgpack.json

75 lines
1.8 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "fc124bda56c5eca176379c3e17f9c2f2d63bbdd9",
"version": "6.0.0",
"port-version": 0
},
{
"git-tree": "006d17cf08d5bb92fdb2f4bf33ba97d18cbcc090",
"version": "4.1.3",
"port-version": 0
},
{
"git-tree": "bb5c0f8535c60c90ea150ac38ed5eccbb77845ef",
"version": "3.3.0",
"port-version": 4
},
{
"git-tree": "fa4345fa5aa3c4a178c7bf354ed0d108cd862ccf",
"version": "3.3.0",
"port-version": 3
},
{
"git-tree": "33927863a8eae2ea7c816389e7ef3dbdcc00382a",
"version-string": "3.3.0",
"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": "ed079e3006a28fcef3dc95c108e03d20027de40c",
"version-string": "3.3.0",
"port-version": 1
},
{
"git-tree": "61d9adf5fb7555558588762d38e34544c6a38e25",
"version-string": "3.3.0",
"port-version": 0
},
{
"git-tree": "6fcf40eb0910b55deab3d0d658a20ca14887f45c",
"version-string": "3.2.0",
"port-version": 2
},
{
"git-tree": "2f4408c870bd4282eccda8dad23e71e0fef4a157",
"version-string": "3.2.0-1",
"port-version": 0
},
{
"git-tree": "65ea7098427ad52422df996fca814abf693d7e7f",
"version-string": "3.2.0",
"port-version": 0
},
{
"git-tree": "d4af0641ad69926a91d7a6814dd28a69edd8df26",
"version-string": "3.1.1",
"port-version": 0
},
{
"git-tree": "707941e4e28397a9436b66ca26762d445401898f",
"version-string": "2.1.5-1",
"port-version": 0
},
{
"git-tree": "3b3e664ae5942b8b824dab13ca32c0c16e83d3d8",
"version-string": "2.1.5",
"port-version": 0
},
{
"git-tree": "8cc54cfaa7f70798f0d63cda39d3a30ba31a57c1",
"version-string": "2.1.1",
"port-version": 0
}
]
}