vcpkg/versions/m-/mdnsresponder.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "2c54f504ea29603c2a46be74893d406db0956336",
"version": "1557.140.5.0.1",
"port-version": 1
},
{
"git-tree": "da77ffdd863076ef906fa3d5b50e8190f1241a57",
"version": "1557.140.5.0.1",
"port-version": 0
},
{
"git-tree": "682a242458b4279dc56aa5111c5c94dc09038c23",
"version": "878.270.2",
"port-version": 2
},
{
"git-tree": "3a57c5a00a432c5f54ca26ddf0a1ea7298364e55",
"version": "878.270.2",
"port-version": 1
},
{
"git-tree": "0feece31cd1ade61b7f16a0a23880d3b29ad3eb4",
"version": "878.270.2",
"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": "a9fb04c2649c37b42f0566c79c795d874d053df6",
"version-string": "765.30.11",
"port-version": 4
},
{
"git-tree": "6e48b77ecbfe0e11101526c0ed9b7e798bf66055",
"version-string": "765.30.11",
"port-version": 3
},
{
"git-tree": "7f6dd0b8040f0c096665760817567b4231321cb4",
"version-string": "765.30.11-2",
"port-version": 0
},
{
"git-tree": "fd16474a00b14d1a53eaf6f5cc47a9b6c4ed4f2d",
"version-string": "765.30.11-1",
"port-version": 0
},
{
"git-tree": "1d781c8504bbe47f5c94f0b9b15b6e6429c3d8bb",
"version-string": "765.30.11",
"port-version": 0
}
]
}