vcpkg/versions/l-/libexif.json

45 lines
1.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "de3b3a5ade33ccafbeb4a00cde07954717240eee",
"version": "0.6.24",
"port-version": 2
},
{
"git-tree": "40f7058e18a937bab35b7213595fc4eef5de7dec",
"version": "0.6.24",
"port-version": 1
},
{
"git-tree": "7194d724b7e14c0d3661153bc81f614a86276c6a",
"version": "0.6.24",
"port-version": 0
},
{
"git-tree": "cbe71aeb850791354309f2c953bf117ddc64f97a",
"version": "0.6.22",
"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": "b068504fa067776d51b304e0c28e23532957c4b6",
"version-string": "0.6.22",
"port-version": 1
},
{
"git-tree": "8db41ebcc42f9b3695ac489c3ea72abb738477f5",
"version-string": "0.6.22",
"port-version": 0
},
{
"git-tree": "0bb1af537f815434564fdf9d81e0f4c37c5528d1",
"version-string": "0.6.21-2",
"port-version": 0
},
{
"git-tree": "bd8c40620aa37d57b1053b61cb0e0791bb794815",
"version-string": "0.6.21-1",
"port-version": 0
}
]
}