vcpkg/versions/p-/pdcurses.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "e09ec910aff6b25bd1e1554b15dce08656b3f3d5",
"version-string": "3.9",
"port-version": 3
},
{
"git-tree": "190eafb5554bf1f484edff1aa94598bac3ff9830",
"version-string": "3.9",
"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": "ba3df274e70a15b1df907d3f594ddc71b99c2ec1",
"version-string": "3.9",
"port-version": 1
},
{
"git-tree": "ffec138e0a9a3b2894c8a0ecf58a14734c340025",
"version-string": "3.9",
"port-version": 0
},
{
"git-tree": "610c065a7fc1f98737cfb2571822c5604f544b02",
"version-string": "3.8-2",
"port-version": 0
},
{
"git-tree": "79ec77fc25179266ad285ef5670addcf4a793f16",
"version-string": "3.8-1",
"port-version": 0
},
{
"git-tree": "12343091e72a9303572e194f040e35b9a11d5223",
"version-string": "3.8",
"port-version": 0
},
{
"git-tree": "4bd66785a4990ff99b3396c769469605ea06ad4e",
"version-string": "3.6",
"port-version": 0
},
{
"git-tree": "4cce2371db93d6c7ee050226675fce0acbe874be",
"version-string": "3.4-1",
"port-version": 0
},
{
"git-tree": "b0e555f795330fef4b840bf0c1c3f2fe58338694",
"version-string": "3.4",
"port-version": 0
}
]
}