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

90 lines
2.2 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": "49313a150ff19dacc9614849648f29c90e424cd3",
"version-string": "5.15.2",
"port-version": 1
},
{
"git-tree": "b7a753736c9da0675d2c65b5f2fd0ba55243ed98",
"version-string": "5.15.2",
"port-version": 0
},
{
"git-tree": "ba0a7677baa9c89cb30bb792bbe990d84a46133b",
"version-string": "5.15.1",
"port-version": 0
},
{
"git-tree": "62742d1350ad7d44e3ee6be29c5fa030883cef64",
"version-string": "5.15.0",
"port-version": 0
},
{
"git-tree": "9988b19aeba65bbbc34bbf55fb064ef56aad9357",
"version-string": "5.12.8",
"port-version": 0
},
{
"git-tree": "7c0adf2f65202ac6a4b1d8b3a92a524e782f9514",
"version-string": "5.12.7",
"port-version": 0
},
{
"git-tree": "d2e2d349ba82b281d1aaa79d3b76aa5962b19ec6",
"version-string": "5.12.5-1",
"port-version": 0
},
{
"git-tree": "0a1168794a5335392729e39882f8b28a73292f3f",
"version-string": "5.12.5",
"port-version": 0
},
{
"git-tree": "23c6f45f0767716d58c6009ed97eed62f70880d3",
"version-string": "5.12.4",
"port-version": 0
},
{
"git-tree": "c5ea26e184537f6eba0a39a1eb708c50988d3314",
"version-string": "5.12.3-1",
"port-version": 0
},
{
"git-tree": "f0b318eadd961e6c1b09f92b34f3ceffe05258a7",
"version-string": "5.12.3",
"port-version": 0
},
{
"git-tree": "2f8da6cbd12fbdb3dd4096123c5876c6c1f82698",
"version-string": "5.12.1",
"port-version": 0
},
{
"git-tree": "8daeb80a4a00d61ecd69dcf1e08bc246a257b5d3",
"version-string": "5.12.0",
"port-version": 0
},
{
"git-tree": "e63607858735fa3fbca80ca06cfb1d1c11650e68",
"version-string": "5.11.2",
"port-version": 0
},
{
"git-tree": "158fc7583861ff08f860b4c36684a96dc479b313",
"version-string": "5.11.1",
"port-version": 0
},
{
"git-tree": "88f5dda4d9123a8b58f18ccc9ebacc48ee69e602",
"version-string": "5.9.2-1",
"port-version": 0
},
{
"git-tree": "7cd48c2b5abb5936b040fe3a9220dadde6dd59bd",
"version-string": "5.9.2-0",
"port-version": 0
}
]
}