vcpkg/versions/l-/libodb-pgsql.json

50 lines
1.2 KiB
JSON
Raw Permalink Normal View History

{
"versions": [
{
"git-tree": "052d127643b92d10de1f4b1f5884787c4bafa92b",
"version": "2.4.0",
"port-version": 8
},
{
"git-tree": "793728785becb5235725430c432d1acfb9496cdb",
"version": "2.4.0",
"port-version": 7
},
{
"git-tree": "2026f9dfa22bc2a9b7c5d865268cd53d1f6870ee",
"version": "2.4.0",
"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": "47c85efbe11253531c364b63debb914b44de579f",
"version-string": "2.4.0",
"port-version": 5
},
{
"git-tree": "dfe9698df72847f118144c93dbcc25e2f0e0b16d",
"version-string": "2.4.0",
"port-version": 4
},
{
"git-tree": "a16d0a534195ac98f6f44b21a42f626cbb5c9a6e",
"version-string": "2.4.0-3",
"port-version": 0
},
{
"git-tree": "80b30af8b3e67a0c8f3c1fc4357db14171a1d9b9",
"version-string": "2.4.0-2",
"port-version": 0
},
{
"git-tree": "a7de9420c4c437d998eaf8e0c7fd42e790977320",
"version-string": "2.4.0-1",
"port-version": 0
},
{
"git-tree": "e9f72ad53526fe181e9b6dd4cf9818389cebf61e",
"version-string": "2.4.0",
"port-version": 0
}
]
}