vcpkg/versions/s-/sdl2-gfx.json

80 lines
2.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "47c97b80725181cf21b62229de6194b92d74f0fa",
"version": "1.0.4",
"port-version": 11
},
{
"git-tree": "6799c7e90f7c606835a0544db0852f31dbf99cbb",
"version": "1.0.4",
"port-version": 10
},
{
"git-tree": "bbbde3e3c97c7bca48c0509f20ff3858b6522abc",
"version-string": "1.0.4",
"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": "7654d7969a75b5402533dfbf7bec763dadbe949e",
"version-string": "1.0.4",
"port-version": 8
},
{
"git-tree": "5a375d8ccd902fab43eae263c2f9405f7224eeda",
"version-string": "1.0.4",
"port-version": 7
},
{
"git-tree": "065f51ff2f0128bfddb6bca6250e159b35c9baab",
"version-string": "1.0.4-6",
"port-version": 0
},
{
"git-tree": "5c7b5a010cd6972363f2da19a13e607039cec88a",
"version-string": "1.0.4-5",
"port-version": 0
},
{
"git-tree": "9c06128ae3371bca67a52f128fa823f16a26a3ea",
"version-string": "1.0.4-4",
"port-version": 0
},
{
"git-tree": "0a5057ea1852480b5ed83d43a11138e6957a74a3",
"version-string": "1.0.4-2",
"port-version": 0
},
{
"git-tree": "b0977ac82e32bd8db7d6929855b4e8bb68b365b1",
"version-string": "1.0.4-1",
"port-version": 0
},
{
"git-tree": "4199cf094cb0f56cb5a6600b41c754b8356cf322",
"version-string": "1.0.4",
"port-version": 0
},
{
"git-tree": "b63402a07ce133a0591b417d20f482105bf08066",
"version-string": "1.0.3-3",
"port-version": 0
},
{
"git-tree": "602c9c6e34522d578b76fcb3dbdf6464a9821bca",
"version-string": "1.0.3-2",
"port-version": 0
},
{
"git-tree": "68a22e8856a24891d7b00581b9a42b5c6f9e27e5",
"version-string": "1.0.3-1",
"port-version": 0
},
{
"git-tree": "55c92741d93532154189eddc7eae81025dee264c",
"version-string": "1.0.3",
"port-version": 0
}
]
}