vcpkg/versions/s-/sqlpp11-connector-mysql.json

45 lines
1.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "2e15caf6d82c3e2b8ad27294a18ea745d7713b28",
"version": "0.61",
"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 01:24:04 -07:00
{
"git-tree": "be46edaef7e1c02783398222e4e73f288848e537",
"version-string": "0.29",
"port-version": 2
},
{
"git-tree": "7a94d2413e27ed320a9ad41acf4e447b060cb5d4",
"version-string": "0.29-1",
"port-version": 0
},
{
"git-tree": "33e5b3964f305b06759a8b8decada4a8aa82bd33",
"version-string": "0.29",
"port-version": 0
},
{
"git-tree": "3c7b1571fda0274cb08ffd5647e2ec0a738c95c2",
"version-string": "0.26",
"port-version": 0
},
{
"git-tree": "22930952e58cd22b323f248fa301cc8f2966b770",
"version-string": "0.25-2",
"port-version": 0
},
{
"git-tree": "4da57b5610d50d9888cc212b6f9e7a47056f764a",
"version-string": "0.25-1",
"port-version": 0
},
{
"git-tree": "722767948f7a745fe2e09a835075fc63c776df1f",
"version-string": "0.25",
"port-version": 0
}
]
}