vcpkg/versions/m-/mqtt-cpp.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
2023-10-31 19:56:37 +01:00
{
"git-tree": "b8d3a5621c52680097b6b22266034c6999b43100",
"version-semver": "13.2.1",
"port-version": 0
},
2022-11-03 23:14:46 +01:00
{
"git-tree": "ad3936ccb89401e0752c0325604b80c2dc63ace8",
"version-semver": "13.1.0",
"port-version": 0
},
{
"git-tree": "185adb92fcfed90301dfc5aec8390b687cd35403",
"version-semver": "13.0.0",
"port-version": 0
},
{
"git-tree": "869a51ca4a2e5b126e9de0af838a24fb9e7c3ab1",
"version-semver": "12.0.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": "9f27414bfee2919393dcfd5da41342fab9ba13ae",
"version-string": "9.0.0",
"port-version": 1
},
{
"git-tree": "076f74542bc427bf248bed66553c4ed0a941be8c",
"version-string": "9.0.0",
"port-version": 0
},
{
"git-tree": "c5342ce2999f8b7f9d1e3ae9e5aada71e7e03266",
"version-string": "7.0.1-2",
"port-version": 0
},
{
"git-tree": "cf4fa43060a5ca52a6478f078f64bd783d0ba6fe",
"version-string": "7.0.1-1",
"port-version": 0
},
{
"git-tree": "2391a0fe7129140e08a4fdf6e9c4595a50f4ae32",
"version-string": "7.0.1",
"port-version": 0
}
]
}