vcpkg/versions/q-/qt5-declarative.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": "bf4313e778b98d69d3e0e3b881069357c3ef8b76",
"version-string": "5.15.2",
"port-version": 1
},
{
"git-tree": "b07a27c5aa8905b158c0f72f2b9e7977391191c1",
"version-string": "5.15.2",
"port-version": 0
},
{
"git-tree": "6c526d6cad6e0813d9dfa6c21387b4b3f4d5b1bc",
"version-string": "5.15.1",
"port-version": 0
},
{
"git-tree": "a2dbccda12ffc2314361dc80b63a5d81f8688275",
"version-string": "5.15.0",
"port-version": 0
},
{
"git-tree": "d24aaceedb9a286f7c0a3cf0dcec2802f9c43695",
"version-string": "5.12.8",
"port-version": 0
},
{
"git-tree": "cf4c1663652c07645e3f154c0cdaee9edc9515bc",
"version-string": "5.12.7",
"port-version": 0
},
{
"git-tree": "5b93449fbc09f0917ec43e25b780d35462f9529d",
"version-string": "5.12.5-1",
"port-version": 0
},
{
"git-tree": "69a9b785bc1c9c6020a7343c735935c7bb5a08db",
"version-string": "5.12.5",
"port-version": 0
},
{
"git-tree": "e04d3d62b37dd397df3c41a868b9bda724262f08",
"version-string": "5.12.4",
"port-version": 0
},
{
"git-tree": "bf496ad2be313266ce6e724190a256bf1a8e9b4f",
"version-string": "5.12.3-2",
"port-version": 0
},
{
"git-tree": "925dbb06740b78eed5d66c0653c2f7992e87a374",
"version-string": "5.12.3-1",
"port-version": 0
},
{
"git-tree": "d5672d027f7f55de3ba7d289dfe98dd6f97dce70",
"version-string": "5.12.3",
"port-version": 0
},
{
"git-tree": "c5234e870df1e7ff7da932098f5a6691e2d7cdf6",
"version-string": "5.12.1",
"port-version": 0
},
{
"git-tree": "146b7f2ec8993c6848fdf84ede22c12f41f9d795",
"version-string": "5.12.0",
"port-version": 0
},
{
"git-tree": "b3f885e341951c5964ce678dc5c0aea87365f739",
"version-string": "5.11.2",
"port-version": 0
},
{
"git-tree": "7aa5a3f133f7c0861995e92c2d4a184d6350798a",
"version-string": "5.11.1",
"port-version": 0
},
{
"git-tree": "b6abfd73fb05688db03a0e705c75a326e2abb82e",
"version-string": "5.9.2-0",
"port-version": 0
}
]
}