vcpkg/versions/d-/double-conversion.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "b85d7877f614063165639f251200a65e8d5c9ba5",
"version": "3.2.0",
"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": "d28a31601897003105b70c847d82a82cd5b5355a",
"version-string": "3.1.5",
"port-version": 1
},
{
"git-tree": "ce6fc681ae5017ab5c3a7b166ab4de2f62f8a78d",
"version-string": "3.1.5",
"port-version": 0
},
{
"git-tree": "1939d35942dc9afe61c0ae1152d05162747ffcd3",
"version-string": "3.1.4",
"port-version": 0
},
{
"git-tree": "fcc1a2eb7cab96a1de2ec8d92742e586cfd85e26",
"version-string": "3.1.0-2",
"port-version": 0
},
{
"git-tree": "da4b2c13e88c06b80ec09cb0455dd72e47b22330",
"version-string": "3.1.0-1",
"port-version": 0
},
{
"git-tree": "27f908a453ae74155875f4d01018755ddbb1ec09",
"version-string": "3.1.0",
"port-version": 0
},
{
"git-tree": "3c54f258cf2f6c0da55274b2d67eb1f8a27e60c5",
"version-string": "3.0.0-2",
"port-version": 0
},
{
"git-tree": "670c6500028c70c426c8778d70026481617ff3c0",
"version-string": "3.0.0-1",
"port-version": 0
},
{
"git-tree": "2c903d35e18cf71696663cb8da6875afce4a0523",
"version-string": "3.0.0",
"port-version": 0
},
{
"git-tree": "1c74cd82ed07054ad12700bea60df097a4d1e43e",
"version-string": "2.0.1-1",
"port-version": 0
},
{
"git-tree": "3885e419b52751a3ca75aa407c029f4f65fbdb46",
"version-string": "2.0.1",
"port-version": 0
}
]
}