vcpkg/versions/n-/numactl.json

40 lines
919 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "87e65b2becdf4301dc9cdb175f893fa0f2215f14",
"version": "2.0.18",
"port-version": 0
},
{
"git-tree": "b849a1a9049852792f8441dece9ee35964dec1de",
"version": "2.0.17",
"port-version": 0
},
{
"git-tree": "2a43cd7692e36347f0bef1c92c982253051f9027",
"version": "2.0.16",
"port-version": 0
},
2022-01-06 22:34:00 +01:00
{
"git-tree": "38b7d6feca43ff05b6a059aae8ce218fa382853e",
"version": "2.0.14",
"port-version": 1
},
{
"git-tree": "58815aa974d9ab14d768576ade86c2e3b43d20a3",
"version": "2.0.14",
"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 01:24:04 -07:00
{
"git-tree": "7b58d763ea0a2c64e755c647c115d6e63ea44617",
"version-string": "2.0.12",
"port-version": 1
},
{
"git-tree": "3539b8994b1dd0a661ed4a7fa69ef53feb4a1a58",
"version-string": "2.0.12",
"port-version": 0
}
]
}