vcpkg/versions/c-/cppmicroservices.json

40 lines
941 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "4d97b6213a9f6a77e8f1062229ead80ffd4703a7",
"version": "3.6.0",
"port-version": 1
},
{
"git-tree": "df21454215c4d4d1106621ead01a95a199163b60",
"version": "3.6.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 16:24:04 +08:00
{
"git-tree": "0462f2f3f6c9bb3e3374b53eccc05adc00417bae",
"version-string": "3.4.0",
"port-version": 3
},
{
"git-tree": "70e0b19ff0c3df69f82cc8aed8eb6d4add67bec2",
"version-string": "3.4.0",
"port-version": 2
},
{
"git-tree": "601bcc5a44a0093cda891fc3b5b92a9f61e0ed03",
"version-string": "3.4.0-1",
"port-version": 0
},
{
"git-tree": "e96000d51bc3b8a826c13033c9da1c6abefb28a7",
"version-string": "v3.4.0",
"port-version": 0
},
{
"git-tree": "65158d87c0e23f3f588bd804481f945469c30a87",
"version-string": "4.0.0-pre1",
"port-version": 0
}
]
}