vcpkg/versions/s-/sdformat10.json

35 lines
793 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "ddcb4054c028e7f0c7e720afbd34aac10f542873",
"version": "10.0.0",
"port-version": 5
},
{
"git-tree": "1784f42c65cd5b0919a9d6c338bf1ab4f6022a9b",
"version": "10.0.0",
"port-version": 4
},
2022-10-06 05:58:42 +08:00
{
"git-tree": "872ca568e5e49581fe0404d3422230d60b3d9710",
"version": "10.0.0",
"port-version": 3
},
{
"git-tree": "abf1fc376b102a9ef833522a615261e5d3e155b8",
"version": "10.0.0",
"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 16:24:04 +08:00
{
"git-tree": "13fbbc3bb6bf9c38cb97d4e14af7c3a46ecba6e6",
"version-string": "10.0.0",
"port-version": 1
},
{
"git-tree": "84626baa34ef0c748149347fdc5f356d66debafd",
"version-string": "10.0.0",
"port-version": 0
}
]
}