vcpkg/versions/t-/tl-optional.json

30 lines
681 B
JSON
Raw Normal View History

{
"versions": [
2024-11-14 19:05:44 +08:00
{
"git-tree": "4612c0c903d1fb6e3d1a17631ccf6ac5f8c7d449",
"version": "1.1.0",
"port-version": 0
},
{
"git-tree": "bb9c03ff3152ce00751b8a63fd8e8a808a802a47",
"version-date": "2021-05-02",
"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": "a88a1a6074c36dd4c7872c7a439c839da2a1e99d",
"version-string": "1.0.0",
"port-version": 2
},
{
"git-tree": "543d9b23441ec80d00a537705e03e4fb45af0334",
"version-string": "1.0.0-1",
"port-version": 0
},
{
"git-tree": "2eda278bab2086fae9d050179170e456c285cc7a",
"version-string": "0.5-1",
"port-version": 0
}
]
}