vcpkg/versions/j-/jsoncpp.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
2023-10-13 10:34:04 +08:00
{
"git-tree": "0213314186f58bfac60d8dee9895c137291db35d",
"version": "1.9.5",
"port-version": 1
},
{
"git-tree": "ee92c743e235ebd2eda342c656704f20a329bda9",
"version": "1.9.5",
"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": "444e56d175225f268ea77433982e81ef131a6d1d",
"version-string": "1.9.4",
"port-version": 1
},
{
"git-tree": "cb9fceddf47584c7fda24180c7fd87f5e83728a5",
"version-string": "1.9.4",
"port-version": 0
},
{
"git-tree": "0e04cc7a3ef97b0742831a1a07563f7662ffcf25",
"version-string": "1.9.2",
"port-version": 0
},
{
"git-tree": "25ee221b5b782b89f82cf6b086a8d97821b68e21",
"version-string": "1.9.1",
"port-version": 0
},
{
"git-tree": "6a441d5ff8a74682e52f59195c06b6f03a376fe8",
"version-string": "1.8.4-1",
"port-version": 0
},
{
"git-tree": "a3b0ef3cca8658c25638bb9eee41f59aace59c88",
"version-string": "1.8.4",
"port-version": 0
},
{
"git-tree": "71306c999a0b6fa75ecb0820f52ed6d50ec19cc6",
"version-string": "1.8.1-1",
"port-version": 0
},
{
"git-tree": "fb4b687be0b74b621e391f032e5d99fb04afa5dd",
"version-string": "1.8.1",
"port-version": 0
},
{
"git-tree": "bef856e09751276ae210d99c248f9921f05b9c1b",
"version-string": "1.7.7",
"port-version": 0
}
]
}