vcpkg/versions/r-/rttr.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "942efa7d91154b3d9841608a015b1c216ca0f251",
"version": "0.9.6+20210811",
"port-version": 1
},
{
"git-tree": "efee986c87a05c8b3257d2aa4d793441af9e970f",
"version": "0.9.6+20210811",
"port-version": 0
},
{
"git-tree": "2a535fc9ac44aea50a9e4f41a4698b86b1a2e747",
"version": "0.9.6",
"port-version": 5
},
{
"git-tree": "14ae0cb613a9536333e7463b862276ad0e2e89ee",
"version": "0.9.6",
"port-version": 4
},
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 01:24:04 -07:00
{
"git-tree": "ce9e17ebafad158458c38697b246601e00b61ae8",
"version-string": "0.9.6",
"port-version": 3
},
{
"git-tree": "7e0d800947d2f880f3dc3c286f8ce7d3c8b4abf1",
"version-string": "0.9.6-2",
"port-version": 0
},
{
"git-tree": "8cdbf35d96880024cc072dbcdae83191b46b1232",
"version-string": "0.9.6-1",
"port-version": 0
},
{
"git-tree": "41fb753caeafab4b2b9e2ffd0b165c71da905a8a",
"version-string": "0.9.6-0",
"port-version": 0
},
{
"git-tree": "20b9c0553deec3117a3693c61a1b66a0136cdcb6",
"version-string": "0.9.5-3",
"port-version": 0
},
{
"git-tree": "144f119ad470cc8881e3f144f59e2b15f63ff898",
"version-string": "0.9.5-2",
"port-version": 0
},
{
"git-tree": "6d1f8eacc4a751037ff054f94c7151fd1e47b8cb",
"version-string": "0.9.5-1",
"port-version": 0
},
{
"git-tree": "6050483a4ffb7b8d7ff1750a353db4db8b6b6b3e",
"version-string": "0.9.5",
"port-version": 0
}
]
}