vcpkg/versions/p-/proj.json

50 lines
1.1 KiB
JSON
Raw Normal View History

{
"versions": [
2022-09-07 03:50:48 +08:00
{
"git-tree": "5ae85e19024d23a2ae8c22c16bab44f2fc236a4a",
"version": "9.1.1",
"port-version": 0
},
{
2022-09-07 03:50:48 +08:00
"git-tree": "7c8c2418c56d4f5b5dfd6e1d8e95b008f03ea63f",
"version": "9.1.0",
"port-version": 0
},
{
"git-tree": "d533a2d58a17e3074d52ec045604b32ed049eacb",
"version": "9.0.1",
"port-version": 1
},
{
"git-tree": "55c13547b4c812fc8bbb32a09260b3e54bc0a352",
"version": "9.0.1",
"port-version": 0
},
{
"git-tree": "1566fbbbd7d8abba35cebac6c8821339d1da1d16",
"version": "9.0.0",
"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": "a90853a886ef1a9425ad477bc996b99c0824ff33",
"version-string": "0",
"port-version": 1
},
{
"git-tree": "759fac2f92b6fe903300aa2a91f4fd39b6c16911",
"version-string": "0",
"port-version": 0
},
{
"git-tree": "a5961e4930dea226aa16beb019e6ea2a9dbd5ba7",
"version-string": "4.9.3-1",
"port-version": 0
},
{
"git-tree": "bcf202e0b0a9b78f183a3b8c3b1cd7494c1df516",
"version-string": "4.9.3",
"port-version": 0
}
]
}