vcpkg/versions/j-/jbig2dec.json

45 lines
1.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "ff97df9b9703a6314f50e608b155efb780d6deb7",
"version": "0.19",
"port-version": 3
},
{
"git-tree": "4622bedc189a466db46f55ab78e895b2c2eb4fef",
"version": "0.19",
"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": "e60aa2c30fefe1269d1d8a6fede748cfa5736aed",
"version-string": "0.19",
"port-version": 1
},
{
"git-tree": "055013875225acf1e33c26a6c127f5d89ccb0583",
"version-string": "0.19",
"port-version": 0
},
{
"git-tree": "1fb2623dc417a1c907cb43de0f226f5c8314595a",
"version-string": "0.17",
"port-version": 0
},
{
"git-tree": "afbda476255a8de7705f284e1539fbee63c20d71",
"version-string": "0.16-1",
"port-version": 0
},
{
"git-tree": "3989bb1cf3350ec7f06fb55e056124809f48d17e",
"version-string": "0.16",
"port-version": 0
},
{
"git-tree": "5283bf24807d465b455cf2629e8fa5eac7e39c96",
"version-string": "0.13",
"port-version": 0
}
]
}