vcpkg/versions/b-/bitsery.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
2024-07-31 22:19:25 +03:00
{
"git-tree": "73f4da051bf8903b91c11b724dd62469eb0565ff",
"version": "5.2.4",
"port-version": 0
},
{
"git-tree": "7c511e7c691fc3d0c4f146298daa7e0a4f4446e5",
"version": "5.2.3",
"port-version": 0
},
{
"git-tree": "6fdd20d510ccb63049b899419af07461f42097e5",
"version": "5.2.2",
"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 01:24:04 -07:00
{
"git-tree": "adbbef892ab01c8b0c57b7be2684ae6bb1a29a99",
"version-string": "5.2.1",
"port-version": 1
},
{
"git-tree": "b7b53af2d59fe702bcbefc77e31745f2a916afc8",
"version-string": "5.2.1",
"port-version": 0
},
{
"git-tree": "e3f91c87735a3cffdc76bc6da0b723cc5b4f2c3d",
"version-string": "5.1.0",
"port-version": 0
},
{
"git-tree": "d6e86f417c1729f51182a199b260c50398eb5a40",
"version-string": "5.0.3",
"port-version": 0
},
{
"git-tree": "4b3721d445e8dff8f26a93e6c5849bf94577e654",
"version-string": "5.0.1-1",
"port-version": 0
},
{
"git-tree": "899f3adebd9df6968c017ca9b87ff44a644f405a",
"version-string": "5.0.0",
"port-version": 0
},
{
"git-tree": "e34ebee8cbfffd7a4b05a07df93f476e916ff146",
"version-string": "4.6.0",
"port-version": 0
}
]
}