vcpkg/versions/z-/zziplib.json

70 lines
1.7 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "571af9ee98bd4bf80bf21fc10a5ec5971678b954",
"version": "0.13.72",
"port-version": 1
},
{
"git-tree": "e09e8bf85eff5c115f9dcf5372f8bdbab590ab6b",
"version": "0.13.72",
"port-version": 0
},
{
"git-tree": "af9957469a45f5b512845c4f180af1a7e4e2e886",
"version-string": "0.13.71",
"port-version": 3
},
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": "a83631e1e1b136f52e8367253ef162fb369f36a3",
"version-string": "0.13.71",
"port-version": 2
},
{
"git-tree": "7cdcdf231074be830e74ba4c498b9b34ba50b94a",
"version-string": "0.13.71",
"port-version": 1
},
{
"git-tree": "46d8c438267ece7a8e8ca0079896b25e579a845d",
"version-string": "0.13.71",
"port-version": 0
},
{
"git-tree": "333d5e69b5cbabfaa3546c82fe02625e2697a492",
"version-string": "0.13.69-4",
"port-version": 0
},
{
"git-tree": "42ebb18a0e56352eb30235bca393c9e4b1a57b6a",
"version-string": "0.13.69-3",
"port-version": 0
},
{
"git-tree": "695c2d19cae510498c778f638937d493f804af27",
"version-string": "0.13.69-2",
"port-version": 0
},
{
"git-tree": "96e1bf5cd31519fda79a3a1158ac8fab9d380138",
"version-string": "0.13.69-1",
"port-version": 0
},
{
"git-tree": "40d5420caade60bef0ac6c8fcccf631d25c98204",
"version-string": "0.13.69",
"port-version": 0
},
{
"git-tree": "08fd5cd576cb00754f7836c1253c50106f5c922b",
"version-string": "0.13.62-1",
"port-version": 0
},
{
"git-tree": "bdb83205c616c6605de6a805a465663a88e91323",
"version-string": "0.13.62",
"port-version": 0
}
]
}