vcpkg/versions/x-/xeus.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
2022-10-06 06:01:43 +08:00
{
"git-tree": "58ccbb03903ad023da77a9a53225dc4bd25df600",
"version": "0.24.3",
"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": "2bb5d11153c9982aad5337c44d2f781918e8d991",
"version-string": "0.24.3",
"port-version": 1
},
{
"git-tree": "f35bb72c2cb6dfb85ca82106b31428762f82fc1c",
"version-string": "0.24.3",
"port-version": 0
},
{
"git-tree": "c8677407719fbe8f6af6098c9d8e852f6744055d",
"version-string": "0.24.1",
"port-version": 1
},
{
"git-tree": "92bafcc9dcf4397b9b27fd8952dfaff5b7fae983",
"version-string": "0.24.1",
"port-version": 0
},
{
"git-tree": "7c91b19434d04cc9e1b4422227f8e79eb799640c",
"version-string": "0.20.0-1",
"port-version": 0
},
{
"git-tree": "02d88d7707c16eef35b80bde734111e47d375358",
"version-string": "0.20.0",
"port-version": 0
},
{
"git-tree": "895d4235a808ff3f2de3bf46eb73e8bf8225b5fd",
"version-string": "0.19.2",
"port-version": 0
},
{
"git-tree": "9b5ed8e4edc9cb4c16ae15ff9572298f1d1275af",
"version-string": "0.19.1-1",
"port-version": 0
},
{
"git-tree": "4244370d9a5573057c4107566c03eb76649c4618",
"version-string": "2019-02-13-1",
"port-version": 0
}
]
}