vcpkg/versions/l-/libssh2.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "3c6dd977de517dc2091377a58c55b7d23f2bc3a0",
"version": "1.10.0",
"port-version": 1
},
{
"git-tree": "996df01b95684f41e8870b9154aeea3bffc63840",
"version": "1.10.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": "d448a6d5c97053355abbfa84171fcc7624dcd509",
"version-string": "1.9.0",
"port-version": 1
},
{
"git-tree": "7c2f49406ae7f86a941bd7a23e7a40aad93e4c93",
"version-string": "1.9.0",
"port-version": 0
},
{
"git-tree": "7b01f535a81d955811c5a28f542b5653ca5f6f91",
"version-string": "1.8.2",
"port-version": 0
},
{
"git-tree": "f02300d8078f63e09a230bbcf52ddffbb6343fce",
"version-string": "1.8.0-4",
"port-version": 0
},
{
"git-tree": "249561bd3f86ac1501b87285bcaacc4eb32f228e",
"version-string": "1.8.0-3",
"port-version": 0
},
{
"git-tree": "d538d22f1ff306faf526f4278ad2b506c0e46b72",
"version-string": "1.8.0-2",
"port-version": 0
},
{
"git-tree": "148da70008292fda258fdd61abe7981fae6ff92e",
"version-string": "1.8.0-1",
"port-version": 0
},
{
"git-tree": "8264f0e776ef5bed4f79edd6c6678ca31e7ed627",
"version-string": "1.8.0",
"port-version": 0
}
]
}