vcpkg/versions/p-/plog.json

45 lines
1.0 KiB
JSON
Raw Normal View History

{
"versions": [
2023-12-06 09:52:23 +08:00
{
"git-tree": "773c53426d316bfe1e35ae7cf9a5afe5c41b8a70",
"version": "1.1.10",
"port-version": 0
},
2022-12-20 03:34:42 +08:00
{
"git-tree": "8123d0f93ad451c1bbf9cb25b57ea290f4124030",
"version": "1.1.9",
"port-version": 0
},
{
"git-tree": "b16507d8b9cbf419b2923d55de7ddfdf013f0267",
"version": "1.1.8",
"port-version": 0
},
{
"git-tree": "aaca8cb03c90bca09c7bf83b393521dce2719686",
"version": "1.1.6",
"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": "7cbf2ab91e484ee21e8c62316558e11b3a49f288",
"version-string": "1.1.5",
"port-version": 1
},
{
"git-tree": "4f4d184ac766682a2b337e2fb7cfaa0ebed61330",
"version-string": "1.1.5",
"port-version": 0
},
{
"git-tree": "593579cfa5dda0525a07480485c918e29d736dfd",
"version-string": "1.1.4",
"port-version": 0
},
{
"git-tree": "2959436e8c38d4c523943d7954921b23683cd5cd",
"version-string": "1.1.3",
"port-version": 0
}
]
}