vcpkg/versions/t-/tinyxml.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "4463cb1a60eed81cb34748d54b2ad5e3b8ed3a08",
"version": "2.6.2",
"port-version": 10
},
{
"git-tree": "a26a6fd0c41c77f82aba481a315e3a0f1e3d0eca",
"version-string": "2.6.2",
"port-version": 9
},
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": "27f0b200c75054768b3c6ed538c8bb938083ab67",
"version-string": "2.6.2",
"port-version": 8
},
{
"git-tree": "3c0dd9fb8a99d226d863eba951e54d40449c3c84",
"version-string": "2.6.2-7",
"port-version": 0
},
{
"git-tree": "cec0727a2f6469b38be27c65a099b5a2a1f15479",
"version-string": "2.6.2-5",
"port-version": 0
},
{
"git-tree": "ecd45d0f90319e1038b023c72139eb5fa88fca5f",
"version-string": "2.6.2-4",
"port-version": 0
},
{
"git-tree": "63fff417215bce1c362be10d9a0c82649b83cbb8",
"version-string": "2.6.2-3",
"port-version": 0
},
{
"git-tree": "55fa76efb6610496376ca33fd3842ddb9f464a40",
"version-string": "2.6.2-2",
"port-version": 0
},
{
"git-tree": "2eee11cd59e0749a9e209ea087bfd28d3eb44bc9",
"version-string": "2.6.2-1",
"port-version": 0
}
]
}