vcpkg/versions/w-/winpcap.json

75 lines
1.8 KiB
JSON
Raw Normal View History

{
"versions": [
2023-10-11 06:01:19 +08:00
{
"git-tree": "1a9aab1255bdc3aa23acbc3cbb89c175d56fdf9b",
"version": "4.1.3",
"port-version": 12
},
{
"git-tree": "fa00dc5de34d5076f7d7bad06b649b6ce4412b68",
"version": "4.1.3",
"port-version": 11
},
{
"git-tree": "93484c8257a6ac5a90f5d540d143a6f4fe5968f2",
"version": "4.1.3",
"port-version": 10
},
{
"git-tree": "5444737a0b6d0d6a1c5129ae7435f52ac5f6bcb4",
"version": "4.1.3",
"port-version": 9
},
{
"git-tree": "85d70a721afa26cf8ff26aec62fd04a16f8e6f7b",
"version": "4.1.3",
"port-version": 8
},
{
"git-tree": "8b3f6f5a5e85be5df29d86d4e8e1621a9f3369f4",
"version": "4.1.3",
"port-version": 7
},
{
"git-tree": "12c456f2d3fc78f821ff85ac7bb55d89ce140ed6",
"version": "4.1.3",
"port-version": 6
},
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": "cf7d08eca18c0a361f4852847260da415a29fa29",
"version-string": "4.1.3",
"port-version": 5
},
{
"git-tree": "c30934172813869e2864463acb7b83cd8f4b2ee6",
"version-string": "4.1.3",
"port-version": 4
},
{
"git-tree": "b3e75100dc98cd912247d1a5eff621c8d5555550",
"version-string": "4.1.3-3",
"port-version": 0
},
{
"git-tree": "2bd18cf8b182b233103acf0243c47406aa40d935",
"version-string": "4.1.3-2",
"port-version": 0
},
{
"git-tree": "dd8af2fa94978477cea3e0f64fe41e01c487c6da",
"version-string": "4.1.3-1",
"port-version": 0
},
{
"git-tree": "1c722067bbff3822db6d4df7c2b7cd16a9717406",
"version-string": "4.1.3",
"port-version": 0
},
{
"git-tree": "05bd2e490fc9ccb90b4655c773ce545a284c88a8",
"version-string": "4.1.2",
"port-version": 0
}
]
}