vcpkg/versions/u-/unixodbc.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "29dd7a9c7a6649ace85fd2e695dc4613ba6cb13a",
"version": "2.3.11",
"port-version": 2
},
2022-05-21 05:37:23 +08:00
{
"git-tree": "d5bf2c65c912060aaebaba66eb6ce1544d6dd7e6",
"version": "2.3.11",
"port-version": 1
},
{
"git-tree": "3042b55f1c0ecd0d27336b24754a6f5f3a746c03",
"version": "2.3.11",
"port-version": 0
},
{
"git-tree": "68ea55f1c4679d7585ab6482d1641bfb6b106b23",
"version": "2.3.9",
"port-version": 1
},
{
"git-tree": "7576aa3f19845c2388e7786118082d4cfa9efb49",
"version": "2.3.9",
"port-version": 0
},
2021-11-09 12:41:14 +08:00
{
"git-tree": "d18b08c03d4a7b07f4bbbed662baac83955af86c",
"version-string": "2.3.7",
"port-version": 4
},
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": "c08774000aaa495036e36835e7a473251718d82d",
"version-string": "2.3.7",
"port-version": 3
},
{
"git-tree": "10efe80ac302d39b15d3e8bd3755ff0386e413f6",
"version-string": "2.3.7",
"port-version": 2
},
{
"git-tree": "b1b94bd8dac657022fb207c178bf2dfe9f4ed142",
"version-string": "2.3.7-1",
"port-version": 0
},
{
"git-tree": "b1a93ce9bd8db0445efd70df850284fdffc8eab1",
"version-string": "2.3.7",
"port-version": 0
}
]
}