vcpkg/versions/t-/treehopper.json

40 lines
955 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "bfc0dea8339d81f05a040cd2ca7831c18c43f765",
"version": "1.11.3",
"port-version": 7
},
{
"git-tree": "d3eb869813ca17e782c54f3df95af48cbb47346c",
"version-string": "1.11.3",
"port-version": 6
},
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": "4efe0662e17f2f340bd234604952d75a4d914aec",
"version-string": "1.11.3",
"port-version": 5
},
{
"git-tree": "a9746b7358065513f7f3ab827ab3c1c3723f194b",
"version-string": "1.11.3-4",
"port-version": 0
},
{
"git-tree": "996413bba31b377767d5555458473dd2585310ca",
"version-string": "1.11.3-3",
"port-version": 0
},
{
"git-tree": "b8241d626198df0f3bc23bc62fd3d5df630b21dc",
"version-string": "1.11.3-2",
"port-version": 0
},
{
"git-tree": "69830c42e71a773f3dab648803e29197b4575581",
"version-string": "1.11.3-1",
"port-version": 0
}
]
}