vcpkg/versions/s-/stlab.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "929ef11a6dc1df85348385786c621e0674c5c903",
"version": "1.7.1",
"port-version": 2
},
2023-04-14 03:51:30 +08:00
{
"git-tree": "abb069e17e53344d850ff3b01ebf636a1734a6e0",
"version": "1.7.1",
"port-version": 1
},
{
"git-tree": "82ee8586032e3eb89368644e78fe4a4726a17774",
"version": "1.7.1",
"port-version": 0
},
{
"git-tree": "8e7a8c754181f223c69b2b67ed3cf928db44e4b9",
"version-string": "1.6.2",
"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": "de92e484fbf56eff04270090cb06452cbe22431b",
"version-string": "1.6.2",
"port-version": 1
},
{
"git-tree": "69d76ab4d0a43c472e67688022dc3831399ee571",
"version-string": "1.6.2",
"port-version": 0
},
{
"git-tree": "8c11accbf5dec18cf90ddcc4d437c87a770a7c99",
"version-string": "1.5.2-1",
"port-version": 0
},
{
"git-tree": "fde6f6435cd41a3b62a25fd53b319173d4c5ef85",
"version-string": "1.5.2",
"port-version": 0
},
{
"git-tree": "15813431ef523a9c76a089cc47c08b170efc2e34",
"version-string": "1.5.1",
"port-version": 0
},
{
"git-tree": "4a9ef07d6a9f5fa994dcde91d96ac7f173c5c6d7",
"version-string": "1.4.1-1",
"port-version": 0
},
{
"git-tree": "af6282ed0f85fcc00ad592e1aa52393342d24ccd",
"version-string": "1.4.1",
"port-version": 0
},
{
"git-tree": "b5080fae004c245ad6037a3cb7581bf2a948719b",
"version-string": "1.3.3",
"port-version": 0
}
]
}