vcpkg/versions/p-/parallel-hashmap.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "f72efb2dae42b2f746be8e239b00b707b3a61449",
"version": "1.34",
"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": "4c8c5305bf3135855a29acfde1effc1f9897ea4d",
"version-string": "1.33",
"port-version": 1
},
{
"git-tree": "f4cfdf7841512d19a12c31705c75cbea341e5705",
"version-string": "1.33",
"port-version": 0
},
{
"git-tree": "2366577284edc25897d22a701976455165f98265",
"version-string": "1.32",
"port-version": 0
},
{
"git-tree": "58bde5c4f3118de4aa1aa84b65a410b9d9f7e721",
"version-string": "1.30",
"port-version": 0
},
{
"git-tree": "e17040bc5d348d6fcef6331003fcecbd62d51e3b",
"version-string": "1.27",
"port-version": 0
},
{
"git-tree": "e10a56dd72865dda64f1f7f51496eb265355385f",
"version-string": "1.24",
"port-version": 0
},
{
"git-tree": "96dea928d3d99c17e0467cbe8e943f584c63b2cf",
"version-string": "1.23",
"port-version": 0
},
{
"git-tree": "00784adc08a483f035f6749e103a2e498ec57521",
"version-string": "1.22",
"port-version": 0
},
{
"git-tree": "6339e1a753d776b89113f736eb15863e5535b9ec",
"version-string": "1.1.0",
"port-version": 0
},
{
"git-tree": "bf69e7f2e0369879c579aa635fbc220088f98a9c",
"version-string": "1.0.0",
"port-version": 0
}
]
}