vcpkg/versions/l-/libzen.json

40 lines
926 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "ab92638577d4a71ffc7acd3bee65dc7d8c0e7bca",
"version": "0.4.41",
"port-version": 0
},
2023-04-03 12:16:47 +08:00
{
"git-tree": "e3635609bd53140cc191a65b168d1a131f84366a",
"version": "0.4.40",
"port-version": 0
},
{
"git-tree": "37c7d9f6e950b43bc62ed633bc8fc1964bb2ada3",
"version": "0.4.39",
"port-version": 1
},
{
"git-tree": "613111ba5e30b7f36fab5f147a4ae10180d8bebf",
"version": "0.4.39",
"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 16:24:04 +08:00
{
"git-tree": "f1c1cb55badf91c09b70e7480ff5c763518f1f51",
"version-string": "0.4.38",
"port-version": 1
},
{
"git-tree": "53a1b657b1e2647f28f64618a7322b51ac85be93",
"version-string": "0.4.38",
"port-version": 0
},
{
"git-tree": "e8279550cd282d6f7e8780c9a4627f12a40184ea",
"version-string": "0.4.37",
"port-version": 0
}
]
}