vcpkg/versions/c-/curlpp.json

40 lines
986 B
JSON
Raw Normal View History

{
"versions": [
2021-11-30 09:22:25 +08:00
{
"git-tree": "a4cea77cfb3429b1ea778167d06c39a691b97e13",
"version-date": "2018-06-15",
"port-version": 6
},
{
"git-tree": "c4802498d8b285cc5a3d3bcb574db0fe22267381",
"version-string": "2018-06-15",
"port-version": 5
},
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": "a764bda6f69b8e79e3f3734ceb420d4c814e9605",
"version-string": "2018-06-15",
"port-version": 4
},
{
"git-tree": "121083d20c3bd1cdb738697da5ae8ae1917ccee8",
"version-string": "2018-06-15-3",
"port-version": 0
},
{
"git-tree": "ccdf1419c1aa3030cba618bf696e064e8a089772",
"version-string": "2018-06-15-2",
"port-version": 0
},
{
"git-tree": "55c1ee44b050a3a3d79a2e2d7bf3df7dfaca0fb1",
"version-string": "2018-06-15-1",
"port-version": 0
},
{
"git-tree": "8b7093e6772f8b0e137fa018122444e15f194bef",
"version-string": "2018-06-15",
"port-version": 0
}
]
}