vcpkg/versions/g-/gumbo.json

40 lines
946 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "b0b57c7286bdadcc64d0e4b2f5b5aca951bb1749",
"version": "0.10.1",
"port-version": 6
},
{
"git-tree": "33203d45b5dcbc9d4bb0175691909a4e9c930d81",
"version": "0.10.1",
"port-version": 5
},
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": "6c80a646e227f1181f474077dbf80f356555f452",
"version-string": "0.10.1",
"port-version": 4
},
{
"git-tree": "997baf0b8c0cd0d7db6e3e991596c8f88d23d804",
"version-string": "0.10.1-3",
"port-version": 0
},
{
"git-tree": "a3699efd0b8dbb4230f212d7381ae55535a29e3f",
"version-string": "0.10.1-2",
"port-version": 0
},
{
"git-tree": "59d1ae36616f1ec3d66f74db7be9c6c678bc5e21",
"version-string": "0.10.1-1",
"port-version": 0
},
{
"git-tree": "3cab3be84cb1f43dea44f88b2c0ace56b08b999f",
"version-string": "0.10.1",
"port-version": 0
}
]
}