vcpkg/versions/l-/libodb-boost.json

40 lines
939 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "e2ecfb7ccff63ea209a0b559e4acc342ff400e54",
"version": "2.4.0",
"port-version": 7
},
{
"git-tree": "86151d98ef2379eb1b3aaa89e3970e9301bd9318",
"version": "2.4.0",
"port-version": 6
},
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": "0aad9c51faa7aef72cf64a8c09fbdb08cf677dbd",
"version-string": "2.4.0",
"port-version": 5
},
{
"git-tree": "facc25e5e4f72028b75da7be4b88208615b172cb",
"version-string": "2.4.0",
"port-version": 4
},
{
"git-tree": "70c909cead2fcecc32b1be6da761fd8aaf74a95a",
"version-string": "2.4.0-3",
"port-version": 0
},
{
"git-tree": "db2bd00d414b9c42084fee42399c5166e71eae82",
"version-string": "2.4.0-2",
"port-version": 0
},
{
"git-tree": "01fb906b12ef56e1e67d2165befb9590192bdbb1",
"version-string": "2.4.0-1",
"port-version": 0
}
]
}