vcpkg/versions/p-/polyclipping.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "9e4c4bb3964361c1db87e2bdc368e5e32d0bb213",
"version-string": "6.4.2",
"port-version": 10
},
{
"git-tree": "6701622648b7f5ab04e6552b312d1cd8543de99c",
"version-string": "6.4.2",
"port-version": 9
},
{
"git-tree": "715616bd21d5d75a9101ac86da0188263b9774c9",
"version-string": "6.4.2",
"port-version": 8
},
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": "25fcf0404b9a7c414b238c0973b4aa43d7bbd6e2",
"version-string": "6.4.2",
"port-version": 7
},
{
"git-tree": "78ba6625af13a277933f9fabf45a755b9be3a43d",
"version-string": "6.4.2",
"port-version": 6
},
{
"git-tree": "0c57e2586514c74ee70e876457660ddc16984b36",
"version-string": "6.4.2",
"port-version": 5
},
{
"git-tree": "6638257385c48301e0df40241b00e4060b9336fb",
"version-string": "6.4.2-4",
"port-version": 0
},
{
"git-tree": "ebeeb41cb633f0ca508d1374ec7434309bd17028",
"version-string": "6.4.2-2",
"port-version": 0
},
{
"git-tree": "bd1eb98d3ae50cf2f6417b55544383fcc18435e7",
"version-string": "6.4.2-1",
"port-version": 0
},
{
"git-tree": "d791145197734667dabb01541241f71dd8c29bad",
"version-string": "6.4.2",
"port-version": 0
}
]
}