vcpkg/versions/g-/gcem.json

40 lines
932 B
JSON
Raw Normal View History

{
"versions": [
2023-10-03 10:51:40 +08:00
{
"git-tree": "789017cc9de9b4147df9ccdb2b6b156bf487df1a",
"version": "1.17.0",
"port-version": 0
},
{
"git-tree": "573f10694a3f7eb8fbc2ffdfbce1131a76253c3f",
"version": "1.16.0",
"port-version": 0
},
{
"git-tree": "01116231bfab30197748230d4125d18fd2652150",
"version": "1.14.1",
"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": "b5ffa19fc8b11179434020c69f6c998dd58268ee",
"version-string": "1.13.1",
"port-version": 1
},
{
"git-tree": "d65e2e2add7a84fdc29049058d9678c025783123",
"version-string": "1.13.1",
"port-version": 0
},
{
"git-tree": "407747ebdcebacdc169b487bc8445eb0ba344aa8",
"version-string": "1.12.0",
"port-version": 0
},
{
"git-tree": "187d71d44420931552570a8f4d3ea5114bbb5cdb",
"version-string": "1.8.1",
"port-version": 0
}
]
}