vcpkg/versions/o-/opengl-registry.json

40 lines
982 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "7f4a1e05a6cfbd923a2eaf9d32da22bde0742a15",
"version-date": "2021-11-17",
"port-version": 0
},
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": "d14f0786a99a87d5d429ba257674fb55e93ccae6",
"version-string": "2020-03-25",
"port-version": 1
},
{
"git-tree": "d23f8ad18109c3545ec5fd5e1475a312d9e656b5",
"version-string": "2020-03-25",
"port-version": 0
},
{
"git-tree": "736f97347ede622d5041bb031837c49e43aeecdf",
"version-string": "2020-02-03",
"port-version": 0
},
{
"git-tree": "3df554a594aee43ecf44aa602d5c210ffd1ab759",
"version-string": "2019-08-22",
"port-version": 0
},
{
"git-tree": "dcc538d711de6a8c1f8fe078c4867d67b8d4b0e3",
"version-string": "2018-06-30-1",
"port-version": 0
},
{
"git-tree": "487dd39ff4041c1bcd9a7688d3c6ffa416ef90d7",
"version-string": "2018-06-30",
"port-version": 0
}
]
}