vcpkg/versions/c-/cgicc.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "d14a5cb5e4d6f0606e2071d1c94262916a45fd6b",
"version": "3.2.20",
"port-version": 1
},
{
"git-tree": "f9e35a8d1360fc1eb4f323ef22e461d0e5926a90",
"version": "3.2.20",
"port-version": 0
},
{
"git-tree": "60fd4672dd6d913e3af2560314dd31bed192a205",
"version": "3.2.19",
"port-version": 7
},
{
"git-tree": "e5359ace765633e6912eb2898e175f797c6b2d45",
"version-string": "3.2.19",
"port-version": 6
},
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 01:24:04 -07:00
{
"git-tree": "a6113e1a5fcadb00943ea3775b6978950b387903",
"version-string": "3.2.19",
"port-version": 5
},
{
"git-tree": "80b636f7c2459aaebfdaeade4f9f0c3892e785dd",
"version-string": "3.2.19-4",
"port-version": 0
},
{
"git-tree": "742cbabc36815039e7824e4d4517ac9ad5bc3aa0",
"version-string": "3.2.19-3",
"port-version": 0
},
{
"git-tree": "379b56c46cd2139b66c84c8bc67edf5bc3362a34",
"version-string": "3.2.19-2",
"port-version": 0
},
{
"git-tree": "add04fedcda8d675524d3ecc4b1900ad19ad66d5",
"version-string": "3.2.19-1",
"port-version": 0
},
{
"git-tree": "c0bc902c6bf35178030984307f7b0cd7b45604ec",
"version-string": "3.2.19",
"port-version": 0
},
{
"git-tree": "3bbf8f6e51b061b7023c5dc9d88862b9f5c2928b",
"version-string": "",
"port-version": 0
}
]
}