vcpkg/versions/n-/netcdf-cxx4.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "e923110ddc48818ad472b7b577823caabfb203ab",
"version": "4.3.1",
"port-version": 5
},
{
"git-tree": "58540066d5e44f206328ac7cc9744153dbd39a68",
"version-string": "4.3.1",
"port-version": 4
},
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": "e973009e3eb7bc949e546204441002d914aa8886",
"version-string": "4.3.1",
"port-version": 3
},
{
"git-tree": "17850b6ba47c047dc7e2e55bdb6b2956521d424c",
"version-string": "4.3.1",
"port-version": 2
},
{
"git-tree": "be1a100ea4fa132b206c23d21515a721d933889c",
"version-string": "4.3.1",
"port-version": 1
},
{
"git-tree": "37f045219c6b94d0f3df5aee1fa2ff22068e6ad1",
"version-string": "4.3.1",
"port-version": 0
},
{
"git-tree": "64bcda2a7fb352a6d5a571097d868fabbdc80897",
"version-string": "4.3.0-5",
"port-version": 0
},
{
"git-tree": "6c8bc2cd8515277be4284793d118b14baa780d61",
"version-string": "4.3.0-4",
"port-version": 0
},
{
"git-tree": "b24f7fa7bd4bba4c2865d464d7ed9d499c1590d0",
"version-string": "4.3.0-2",
"port-version": 0
},
{
"git-tree": "2d5fd97c9e7ce59dc22fc0b0382629373ab659b7",
"version-string": "4.3.0-1",
"port-version": 0
},
{
"git-tree": "c50e548832c03140ac4af027e4b0fe8b53a0916a",
"version-string": "4.3.0",
"port-version": 0
}
]
}