vcpkg/versions/s-/sdl2pp.json

70 lines
1.7 KiB
JSON
Raw Normal View History

{
"versions": [
2024-08-06 15:31:57 +08:00
{
"git-tree": "9c13583635bc0fc65f50cf02ff22c06ccb6ccaed",
"version": "0.16.1",
"port-version": 10
},
{
"git-tree": "16f7b3b1b4e13c6a5d9320dae876c1119a9b10c6",
"version": "0.16.1",
"port-version": 9
},
{
"git-tree": "77e56d86771c6c97f8d9c7d8fa121dc2312ef509",
"version": "0.16.1",
"port-version": 8
},
{
"git-tree": "bad32a45cda4bfc70197d99e62b840794bd0b747",
"version": "0.16.1",
"port-version": 7
},
{
"git-tree": "064e16bf7d04b929d0175c6c0aff6486032370db",
"version": "0.16.1",
"port-version": 6
},
{
"git-tree": "89665ed749a05bebacf76088e7781d0f1ef4c06a",
"version": "0.16.1",
"port-version": 5
},
{
"git-tree": "0d0efed99dd39ca3bbf35b1b601b7aec4a82b55b",
"version": "0.16.1",
"port-version": 4
},
{
"git-tree": "d5730ae91038160f97ba206548f86d3fbda63d7c",
"version": "0.16.1",
"port-version": 3
},
{
"git-tree": "99074ba7a6f080e0b9c74dde8254875c95c7d9ea",
"version": "0.16.1",
"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": "f63085c248f23dcc4acdf7d77c8ecab83387f45d",
"version-string": "0.16.1",
"port-version": 1
},
{
"git-tree": "d05210be37ddf262ae6599c41c16bb6204a232df",
"version-string": "0.16.1",
"port-version": 0
},
{
"git-tree": "0ed8fecb9caeb8edf3ff07e3b9da96118c7de41a",
"version-string": "0.16.0-2",
"port-version": 0
},
{
"git-tree": "109cd46df152c0ddf593cad5e967c7dda1e34291",
"version-string": "0.16.0-1",
"port-version": 0
}
]
}