vcpkg/versions/a-/anax.json

50 lines
1.2 KiB
JSON
Raw Permalink Normal View History

{
"versions": [
2022-03-07 20:09:47 +01:00
{
"git-tree": "db4b3bfeef52da822588d5bb85a4b3bf9affa80f",
"version": "2.1.0",
"port-version": 8
},
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": "347d15eb157a2bad09742ec97dfc417674936982",
"version-string": "2.1.0",
"port-version": 7
},
{
"git-tree": "561c057f2d0478df1e08b0e07247b8ddf5c8a04a",
"version-string": "2.1.0-6",
"port-version": 0
},
{
"git-tree": "a1cfbdd5189cb5cd4ee7a20087c6dc7014063eeb",
"version-string": "2.1.0-5",
"port-version": 0
},
{
"git-tree": "035862c3dbc640e495e3a37c80984aa45d1cb3cd",
"version-string": "2.1.0-4",
"port-version": 0
},
{
"git-tree": "2bc88f133ecc6dcc53158816cf64a8e15d38cc2e",
"version-string": "2.1.0-3",
"port-version": 0
},
{
"git-tree": "e95be4e570a7e59deb1e1c5d85e6b3a05a94c502",
"version-string": "2.1.0-2",
"port-version": 0
},
{
"git-tree": "6586db19661389cab598aa9c64ed0bbf684959cf",
"version-string": "2.1.0-1",
"port-version": 0
},
{
"git-tree": "e4bdb59bf7b80aa938e901ed3eea5e7b730f9930",
"version-string": "2.1.0",
"port-version": 0
}
]
}