vcpkg/versions/w-/wtl.json

75 lines
1.9 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "3345336300f47e924a80d3be0f3fb76c558a54fe",
"version-string": "10.0.10320",
"port-version": 2
},
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": "6d429012165553d38ea4ae45057ce85bb34deb96",
"version-string": "10.0.10320",
"port-version": 1
},
{
"git-tree": "f8a86cb0f5713c783df17553cf443c164d81c10d",
"version-string": "10.0.10320",
"port-version": 0
},
{
"git-tree": "5187fbf86b894cd0a33a5822cf8ccf1a887c43ad",
"version-string": "10.0.10077",
"port-version": 0
},
{
"git-tree": "3bfe893603b89b7987c50f6a356e73e0f2a8fc4e",
"version-string": "10.0-10",
"port-version": 0
},
{
"git-tree": "9c4cfe6f5523f328f7f05f22b93c9862bd8dd508",
"version-string": "10.0-8",
"port-version": 0
},
{
"git-tree": "d3cdc3475f2424a751293b2465662f69ff0bcc8c",
"version-string": "10.0-6",
"port-version": 0
},
{
"git-tree": "3fc488b73c9de9e7030d0e4b4e60b687c3f2e9c7",
"version-string": "10.0-5",
"port-version": 0
},
{
"git-tree": "24d83a98898eca91b9041870ff9a8359565937cc",
"version-string": "10.0-4",
"port-version": 0
},
{
"git-tree": "53d2cbf49fdeb5761cfca5dfbec9d36ef1c13589",
"version-string": "10.0-3",
"port-version": 0
},
{
"git-tree": "be779f61afe7eb786039a90db7dbc2f2aab9a42f",
"version-string": "10.0-2",
"port-version": 0
},
{
"git-tree": "32663304c4b16c1ae66040cc77960aec22972cc4",
"version-string": "10.0-1",
"port-version": 0
},
{
"git-tree": "9fc5058744d0ca053bd2931f9ddd8add2d0eef85",
"version-string": "10.0",
"port-version": 0
},
{
"git-tree": "3503c1a3a4ffd26af61fba2e5f435fc8e4347f71",
"version-string": "9.1",
"port-version": 0
}
]
}