vcpkg/versions/l-/libirecovery.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "d47bd1d38f72799238f2d815b96b11bb11d9ea14",
"version-date": "2023-05-13",
"port-version": 2
},
{
"git-tree": "72b9637bc62e62eb478d09618545c419bf21ed48",
"version-date": "2023-05-13",
"port-version": 1
},
{
"git-tree": "0e9b8ce22a277344a7f29c62f38bf44458a129ba",
"version-date": "2023-05-13",
"port-version": 0
},
{
"git-tree": "d3d139450efc9411edc51dea49130dddf09a08d0",
"version": "1.0.25",
"port-version": 8
},
{
"git-tree": "bd02ed99ae380b71fb4bc55f98012c20e7d73bb8",
"version": "1.0.25",
"port-version": 7
},
{
"git-tree": "da471f398ce0264ef333dfbaaa521c79c51ab5f9",
"version": "1.0.25",
"port-version": 6
},
{
"git-tree": "586b5bd01468f7690094397c1b3f8fed0456d65e",
"version": "1.0.25",
"port-version": 5
},
{
"git-tree": "1396dbed8e08ee556ad00ce3a67ba0de7c7b6298",
"version-string": "1.0.25",
"port-version": 4
},
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": "8e5ca128c3c62e747f3cc4beaeb0f5d74b263403",
"version-string": "1.0.25",
"port-version": 3
},
{
"git-tree": "9ea37c179cee88aa14450622ac673bbb7ce8eb88",
"version-string": "1.0.25-2",
"port-version": 0
},
{
"git-tree": "9dc6f56a654ca4ec61a2bd4cd19ade27d9e10841",
"version-string": "1.0.25-1",
"port-version": 0
}
]
}