vcpkg/versions/q-/qt5-xmlpatterns.json

85 lines
2.1 KiB
JSON
Raw Normal View History

{
"versions": [
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": "d4531f24cddd2692989fac9e84a9eb09301ee180",
"version-string": "5.15.2",
"port-version": 1
},
{
"git-tree": "afd90dc7576c45b74602e2d632e15bea59bfe38b",
"version-string": "5.15.2",
"port-version": 0
},
{
"git-tree": "c5d3ebe14a81907e6948d45eb78c07929f55084a",
"version-string": "5.15.1",
"port-version": 0
},
{
"git-tree": "280b27c050903a666a0dd518d31673ca015cd512",
"version-string": "5.15.0",
"port-version": 0
},
{
"git-tree": "a47e6078f537a261de3eedeb7d5df9d61680f939",
"version-string": "5.12.8",
"port-version": 0
},
{
"git-tree": "39c8ed889a64d5204bdbef53c3b7c9ed15822298",
"version-string": "5.12.7",
"port-version": 0
},
{
"git-tree": "c95b73443a1c10a3f21b94192a3d1a9e0e6a9fc3",
"version-string": "5.12.5-1",
"port-version": 0
},
{
"git-tree": "2b6ef18aca8398475750a771a9c863214728244d",
"version-string": "5.12.5",
"port-version": 0
},
{
"git-tree": "4f7d61c3a2359871411f186c70dbba319d3b8ddd",
"version-string": "5.12.4",
"port-version": 0
},
{
"git-tree": "7c7b3ee1ac74a84f15e72cf2cb9fd40d9d628163",
"version-string": "5.12.3-1",
"port-version": 0
},
{
"git-tree": "fa1b098185ead8fd17a2a60ff6eb17bbc258753f",
"version-string": "5.12.3",
"port-version": 0
},
{
"git-tree": "ef5d448131c0f97d55f6e98708447b169608010f",
"version-string": "5.12.1",
"port-version": 0
},
{
"git-tree": "04974fa68edbf8e12a6e8205f84ffc64c221c557",
"version-string": "5.12.0",
"port-version": 0
},
{
"git-tree": "b6b12639db0a0c2fde28e0192c5f63645f13f7d9",
"version-string": "5.11.2",
"port-version": 0
},
{
"git-tree": "8ccb46e3216afe740b5be3709ae333ede8a05ef6",
"version-string": "5.11.1",
"port-version": 0
},
{
"git-tree": "6212f4fb0039e9d944072685a972e480c94d3950",
"version-string": "5.9.2-0",
"port-version": 0
}
]
}