vcpkg/versions/e-/easyloggingpp.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "89605d63db69f67c4dfaf9a5b2cc33650967e065",
"version": "9.97.0",
"port-version": 4
},
{
"git-tree": "69f6b238899967e671f818a164f21de0219546bc",
"version": "9.97.0",
"port-version": 3
},
{
"git-tree": "40ca985ab8030ca0daf7c902e413423801d3e3d4",
"version": "9.97.0",
"port-version": 2
},
{
"git-tree": "9cf908bc2aaf8f7ec50bf54b111aed600ca50282",
"version": "9.97.0",
"port-version": 1
},
{
"git-tree": "3978e3f41876c42b501eb4d246ee98dea886fa36",
"version": "9.97.0",
"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": "4dccf41488f050a70d3232a86296883b54533d2f",
"version-string": "9.96.7",
"port-version": 2
},
{
"git-tree": "22fde45fd8d035536d9d3bbb8b174649c037e831",
"version-string": "9.96.7-1",
"port-version": 0
},
{
"git-tree": "87b2df47847f79e4249a92f02428548ec951763c",
"version-string": "9.96.7",
"port-version": 0
},
{
"git-tree": "33abdeaa7319ba4d62db32fa7d82abc472a577b1",
"version-string": "9.96.5-1",
"port-version": 0
}
]
}