vcpkg/versions/c-/charls.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "bb6273d01bce3793f42709b833ac47ff0afe71a6",
"version": "2.3.4",
"port-version": 0
},
{
"git-tree": "215d96df3e02eb0bfaae991586f4b64fd03c6cf2",
"version-string": "2.2.0",
"port-version": 2
},
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": "9e9e71b04ec39396631b28e98175e4c862cb154d",
"version-string": "2.2.0",
"port-version": 1
},
{
"git-tree": "12553ab1c13943bb8295052c2965bdbcbfc7f57f",
"version-string": "2.2.0",
"port-version": 0
},
{
"git-tree": "2fa61c15c3a5e28cb65a32bce7769942d8a8f061",
"version-string": "2.1.0-1",
"port-version": 0
},
{
"git-tree": "7c242f5202e4483fa223f0cf6243f7c62ce4fb1b",
"version-string": "2.0.0-3",
"port-version": 0
},
{
"git-tree": "d24536d72857fd7a9f78eed901f8e365c3f46ac1",
"version-string": "2.0.0-2",
"port-version": 0
},
{
"git-tree": "af633d8047f2486b1f3c525a5aa285afc26b4347",
"version-string": "2.0.0-1",
"port-version": 0
},
{
"git-tree": "f43231dbadb55d20a0df8623d03be555bf9cd12a",
"version-string": "2.0.0",
"port-version": 0
}
]
}