vcpkg/versions/p-/ponder.json

35 lines
810 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "e88e9908caf5e81e073a7b0fa0e082a6a917df04",
"version": "3.0.0",
"port-version": 5
},
2021-11-04 18:41:45 +01:00
{
"git-tree": "82147bc05cb5c080baabe1085f8ab690f71ba6e2",
"version-string": "3.0.0",
"port-version": 4
},
{
"git-tree": "84acf8367d19d188309207790cc07c149e0464f3",
"version-string": "3.0.0",
"port-version": 3
},
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": "07af14a9b06787eef8901b771c95aa0633f50c07",
"version-string": "3.0.0",
"port-version": 2
},
{
"git-tree": "2cb0155853b202ebf943fc6668096bd8aae75681",
"version-string": "3.0.0-1",
"port-version": 0
},
{
"git-tree": "69a8598d2fd87136792a4cf8ec6361027864a6ac",
"version-string": "3.0.0",
"port-version": 0
}
]
}