vcpkg/versions/p-/pixel.json

45 lines
1.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "54bad3e5b7d0455972d0cc84fa90e5d6549b6203",
"version-date": "2022-03-15",
"port-version": 1
},
{
"git-tree": "dbf76415a78802e7dc2717280e2a44123a04df69",
"version-date": "2022-03-15",
"port-version": 0
},
{
"git-tree": "346ea5fe92b2cfe055a1cd242868605e56d94318",
"version": "0.3",
"port-version": 4
},
{
"git-tree": "57198090e451e125ad231a0a1068643cbd06cb61",
"version-string": "0.3",
"port-version": 3
},
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 01:24:04 -07:00
{
"git-tree": "bd45dec4585e8be40088a7017dcce546a009748f",
"version-string": "0.3",
"port-version": 2
},
{
"git-tree": "9c2f4ccc6c5ca30c268af6a115f7933ffb972deb",
"version-string": "0.3-1",
"port-version": 0
},
{
"git-tree": "653dc998813165593d92fa5797cec7371e60b141",
"version-string": "0.3",
"port-version": 0
},
{
"git-tree": "1c1a5a5526e461a80c146d751cfadd807add018d",
"version-string": "0.2",
"port-version": 0
}
]
}