vcpkg/versions/b-/bitmagic.json

40 lines
922 B
JSON
Raw Normal View History

{
"versions": [
2023-09-27 16:24:06 +08:00
{
"git-tree": "98fb920eba690a2a64666a6a76e16af95a797ae8",
"version": "7.13.4",
"port-version": 0
},
{
"git-tree": "d8f4a3a305e2872a295f493450a96b093ad39ef7",
"version": "7.12.3",
"port-version": 0
},
{
"git-tree": "0b5257f630778f4e1acbee7661041a1a67c7f21d",
"version": "7.11.2",
"port-version": 0
},
{
"git-tree": "9a8ea093834ac196fd75eb7d07348dd27ebcb715",
"version": "7.5.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 16:24:04 +08:00
{
"git-tree": "9854378bbae00f886710d80f38221368faf99547",
"version-string": "7.2.0",
"port-version": 1
},
{
"git-tree": "752ea75ea3ffa1341de3f427b9a9c51cdea3df17",
"version-string": "7.2.0",
"port-version": 0
},
{
"git-tree": "f6b7d113e8f4ef1dd43faf316ee848f35fdf0ace",
"version-string": "6.4.0",
"port-version": 0
}
]
}