vcpkg/versions/t-/tinyexr.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
2024-03-30 08:22:33 +08:00
{
"git-tree": "8912e0ebb371923d28ba6a2cc8ab5ecd47957e51",
"version": "1.0.8",
"port-version": 0
},
{
"git-tree": "14f0bcbec927dc73035b2642284f1329a113209f",
"version": "1.0.5",
"port-version": 0
},
{
"git-tree": "d0381d495cb1b502e1b5ccaafb2409f75c0726a3",
"version": "1.0.1",
"port-version": 0
},
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": "81548356751317d12ff579d7c7749d073e5d0fb6",
"version-string": "1.0.0",
"port-version": 1
},
{
"git-tree": "b64261d4bf58c8ec08386f29bf15aaebd52ddc8d",
"version-string": "1.0.0",
"port-version": 0
},
{
"git-tree": "b230e702351b9e07a6128a062e21ef06957a58ef",
"version-string": "2020-03-15",
"port-version": 0
},
{
"git-tree": "37e94fe2a31418c5ac6423809560c0403db5bdf6",
"version-string": "0.9.5-d16ea6-1",
"port-version": 0
},
{
"git-tree": "1e0e5f215e5c6d44b105fd40ea3f97e756117f36",
"version-string": "0.9.5-d16ea6",
"port-version": 0
},
{
"git-tree": "d56a748b8e2c277780b361b5929851e6121e08bb",
"version-string": "v0.9.5-d16ea6",
"port-version": 0
}
]
}