vcpkg/versions/p-/prometheus-cpp.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
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": "4656585ffca17e789395f30f4ee6a301cff7f34e",
"version-string": "0.12.3",
"port-version": 1
},
{
"git-tree": "78cf4d97293c0baf7ef735035944c6859d06c980",
"version-string": "0.12.3",
"port-version": 0
},
{
"git-tree": "bcbc7c9c58b3cfd8b1559bab7816b46edf8f2af6",
"version-string": "0.12.2",
"port-version": 0
},
{
"git-tree": "be1b7db5fe2c186c52cd074caa038874d27e245f",
"version-string": "0.12.1",
"port-version": 0
},
{
"git-tree": "c86b33f02ac3a4e3c0fa288cf033a15238f24a7a",
"version-string": "0.11.0",
"port-version": 0
},
{
"git-tree": "8e66ca919082f0ccf735b51100dc6c065fe96944",
"version-string": "0.10.0",
"port-version": 0
},
{
"git-tree": "9b66fec0d59fac266b23fcc991c85360fa35561d",
"version-string": "0.9.0",
"port-version": 0
},
{
"git-tree": "09127f6d3d36f989e60d62c713725c0dbc9a7196",
"version-string": "0.8.0",
"port-version": 0
},
{
"git-tree": "c9d3bcd59e845a9f42589674ed2c84e3b4e389f8",
"version-string": "0.7.0",
"port-version": 0
},
{
"git-tree": "068eb8e03eb06c747321598dd011eb164d5cd316",
"version-string": "0.6.0",
"port-version": 0
}
]
}