vcpkg/versions/j-/json-c.json

40 lines
976 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "2090ebb6a6e0be1d0f6331c266bd0bc6eef1cd57",
"version-date": "2022-06-26",
"port-version": 2
},
{
"git-tree": "c24e9a9cbc53b10a7235087cc58e89924415b281",
"version-date": "2022-06-26",
"port-version": 1
},
{
"git-tree": "84aaadc268ad278e102cdd7e9526e5c5929c1cd6",
"version-date": "2022-06-26",
"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": "5c8d00d59a40b54cc9400f045b62e439740c2909",
"version-string": "2019-09-10",
"port-version": 2
},
{
"git-tree": "46d6f0302fe2ee6649ade0a8ef9a17a88226bc73",
"version-string": "2019-09-10",
"port-version": 1
},
{
"git-tree": "e3fbc03becb35cdc7f395d7525774a86e513d2ba",
"version-string": "2019-09-10",
"port-version": 0
},
{
"git-tree": "49ce4ed91d7d04f68582447f35b016e107c2772b",
"version-string": "2019-05-31",
"port-version": 0
}
]
}