vcpkg/versions/l-/libsquish.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "3c259e069413fc51d82423f6c9842ad285e210e9",
"version": "1.15",
"port-version": 11
},
{
"git-tree": "9a7ae325bacc78d07dc92de654a877584cff0cca",
"version": "1.15",
"port-version": 10
},
{
"git-tree": "97da7fd0b127d2b07821950e5aee7acadbcd9d17",
"version-string": "1.15",
"port-version": 9
},
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": "9e7c8060fb2b0499a31df98ef1e8652081e18944",
"version-string": "1.15",
"port-version": 8
},
{
"git-tree": "89f022a7ab3d01ae25876f7dcaf84327f615ad87",
"version-string": "1.15-7",
"port-version": 0
},
{
"git-tree": "8cecde0bfe4e0877ed5c9accf43e0f3d58ad8946",
"version-string": "1.15-5",
"port-version": 0
},
{
"git-tree": "51fa391504a7f57fa03321ce40efb0bd83a5d5c5",
"version-string": "1.15-3",
"port-version": 0
},
{
"git-tree": "8d8ec8e9f11a659f457449792b8fa3907288e0ff",
"version-string": "1.15-2",
"port-version": 0
},
{
"git-tree": "9b3cfc2bf0f652299200b047834118b72f38fba0",
"version-string": "1.15-1",
"port-version": 0
},
{
"git-tree": "6b2bd544c408afd2e2deec54a6a28e306a41e7ba",
"version-string": "1.15",
"port-version": 0
}
]
}