vcpkg/versions/a-/arb.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "e1b560a5a2aa835d54da9fdabac5eea48255e93d",
"version": "2.21.1",
"port-version": 1
},
{
"git-tree": "06326497117fb757651649225284d2fe4100ef79",
"version": "2.21.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": "8ad21afd78955622e44098428fa7b8b7790f82d8",
"version-string": "2.18.1",
"port-version": 1
},
{
"git-tree": "7a1fad4344b58a4c70a15c0a2a890c011a52c75f",
"version-string": "2.18.1",
"port-version": 0
},
{
"git-tree": "6add6cb53869d0c182da4dea8dd049a846cc8c41",
"version-string": "2.17.0",
"port-version": 0
},
{
"git-tree": "492a3e49ecd0cb6f806f03eccdc836a03fffcc38",
"version-string": "2.16.0",
"port-version": 0
},
{
"git-tree": "1380d6df87f04cdb99ebdd50af031b456033da3c",
"version-string": "2.11.1-2",
"port-version": 0
},
{
"git-tree": "d0101f7b492d597152d392af47c394b5d159a3a2",
"version-string": "2.11.1-1",
"port-version": 0
},
{
"git-tree": "fb3d463b6fae7f3bc030a93a22af93af05357e69",
"version-string": "2.11.1",
"port-version": 0
}
]
}