vcpkg/versions/j-/jansson.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "f284c9aba6b994cb6fe175b675976d34257b4c85",
"version": "2.14",
"port-version": 1
},
{
"git-tree": "1a5c55feab368e4bfb40be993b9ea5a39fc82f51",
"version": "2.14",
"port-version": 0
},
{
"git-tree": "f63fad0d7e1e2a98826543c3b1f671c34b104a72",
"version-string": "2.13.1",
"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": "e03158776f244589d6af861b4ceefabd4cd9fd12",
"version-string": "2.13.1",
"port-version": 1
},
{
"git-tree": "73e4996b95f57b891a1c4a85cd579297a55ac148",
"version-string": "2.13.1",
"port-version": 0
},
{
"git-tree": "b9abe1e8d0e3ba2909d4f38ad609efc2788aa44b",
"version-string": "2.12-1",
"port-version": 0
},
{
"git-tree": "2e471e8a19dcebef0b4b509d0544b6adc1492cea",
"version-string": "2.12",
"port-version": 0
},
{
"git-tree": "716161fc094b6f664ac4e6bb32f6618c205268ec",
"version-string": "2.11-2",
"port-version": 0
},
{
"git-tree": "5fa6027a192e9e5d9b2caf2f1a120591d00e0b51",
"version-string": "2.11",
"port-version": 0
},
{
"git-tree": "0c2aef0c66564e632b25d756b066d07103bd5e32",
"version-string": "2.10-1",
"port-version": 0
},
{
"git-tree": "81a840970f4c7ee50becc01b7a2f582394e5123c",
"version-string": "v2.10-1",
"port-version": 0
},
{
"git-tree": "a8ce624d53c0457c809d5c9d77628daacf55ebc7",
"version-string": "v2.10",
"port-version": 0
}
]
}