vcpkg/versions/h-/hypre.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
2023-10-04 16:53:01 -07:00
{
"git-tree": "c86dd4b42c27ebdfbfa8c276e3e1b1d8f9ca7333",
"version": "2.29.0",
"port-version": 1
},
2023-10-03 07:09:38 +08:00
{
"git-tree": "bb61b149787c812f654a86f6863a6e4b8cb011cb",
"version": "2.29.0",
"port-version": 0
},
{
"git-tree": "8e59caf45e83417ef29aec09ecb532d5e39ef6b5",
"version": "2.23.0",
"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": "35d58add9c09f800e2895bacf563de15f031f7be",
"version-string": "2.19.0",
"port-version": 1
},
{
"git-tree": "1643e99e1d689845a05bd360bed378965ce9c0cc",
"version-string": "2.19.0",
"port-version": 0
},
{
"git-tree": "0ca106b1e3ee3b085e6853a5ce4f05c868ad32ea",
"version-string": "2.11.2-3",
"port-version": 0
},
{
"git-tree": "d53450e820eedadc2acf1e63dfd5cb387424f719",
"version-string": "2.11.2-2",
"port-version": 0
},
{
"git-tree": "e00e7348029f4bb45e36fdd4f1abe74a9f6344c6",
"version-string": "2.11.2-1",
"port-version": 0
},
{
"git-tree": "481e46f98a23c5b01d599ca3fb55757bd28880e5",
"version-string": "2.11.2",
"port-version": 0
},
{
"git-tree": "d8675c56f0f5fa18d2680496c2f6619b9e734023",
"version-string": "2.11.1",
"port-version": 0
}
]
}