vcpkg/versions/s-/sdformat9.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
2022-10-06 05:58:23 +08:00
{
"git-tree": "693fd5dc7bdb0dfe766275719f0b3f85477994aa",
"version": "9.8.0",
"port-version": 1
},
{
"git-tree": "32a06104ef8500390db26865dbc6f887de83f1ee",
"version": "9.8.0",
"port-version": 0
},
{
"git-tree": "0a599309f16afe5d3163ec1eb131eed575880ae4",
"version": "9.4.0",
"port-version": 6
},
{
"git-tree": "d050d624faf72f8dcb62fdb7a5378ae5d8e8b5d8",
"version": "9.4.0",
"port-version": 5
},
2022-01-22 03:00:19 +08:00
{
"git-tree": "2b064abf9a6849ed5234b03bf5604ccd0169db4a",
"version": "9.4.0",
"port-version": 4
},
{
"git-tree": "5f47672c7e4349da14189c38db3a15dcdad5a196",
"version": "9.4.0",
"port-version": 3
},
{
"git-tree": "0ae3b0b53c638614e4a03164b1a5d1b70796e55e",
"version-string": "9.4.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": "d8e35870677a08dcb88753aa2ef446b75a9646f2",
"version-string": "9.4.0",
"port-version": 1
},
{
"git-tree": "750aebae0f740736affd93087026e0e344d81af2",
"version-string": "9.4.0",
"port-version": 0
},
{
"git-tree": "54ae4ec88f43847be416ec4fbf9348a90e2c5b63",
"version-string": "9.2.0-1",
"port-version": 0
},
{
"git-tree": "a53671a5fb6b98d0fb9a3dcbfa67fe1bb321ac53",
"version-string": "9.2.0",
"port-version": 0
}
]
}