vcpkg/versions/b-/berkeleydb.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "621db13f2d2f182412abec7e8e699cc57f9bf577",
"version": "4.8.30",
"port-version": 9
},
{
"git-tree": "27ed2f8c5c5b6c5ba677703f69d9e83062ff6c86",
"version": "4.8.30",
"port-version": 8
},
{
"git-tree": "753782cd715f3780a1d3d75ef7655e92a414a440",
"version": "4.8.30",
"port-version": 7
},
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": "fdef7fa8068cc8b7443905db215bed2dcf378abf",
"version-string": "4.8.30",
"port-version": 6
},
{
"git-tree": "e0ed5491b8a0001f97470f65cc9addf2c403f658",
"version-string": "4.8.30",
"port-version": 5
},
{
"git-tree": "d55b50f30f9ea89e25dbf8dc1befee3e7e375391",
"version-string": "4.8.30-4",
"port-version": 0
},
{
"git-tree": "1709618b935f9be25e82465f94db0fa6a0f90682",
"version-string": "4.8.30-3",
"port-version": 0
},
{
"git-tree": "41169c982c74f22b67fda5a3bd9410a0a0fc5539",
"version-string": "4.8.30-2",
"port-version": 0
},
{
"git-tree": "cfb04a51e793d0769c00dfc8674baa171af80f38",
"version-string": "4.8.30-1",
"port-version": 0
},
{
"git-tree": "cfa54d7bb62818caca88f109dc6b5381437545ab",
"version-string": "4.8.30",
"port-version": 0
}
]
}