vcpkg/versions/l-/libfreenect2.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "68766f591851bf3b1bf97eff04a69dcd894d712a",
"version": "0.2.0",
"port-version": 10
},
{
"git-tree": "33bfc70d84b528fa549f57401c884abda1073526",
"version": "0.2.0",
"port-version": 9
},
{
"git-tree": "ce8aefbc76e982371258202989111294d9a5221d",
"version": "0.2.0",
"port-version": 8
},
{
"git-tree": "cdedefe776984f442e8af70b0e0738d12d56fafa",
"version-string": "0.2.0",
"port-version": 7
},
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": "00c2b86114dcda5bd91f93d83e696b85148037a0",
"version-string": "0.2.0",
"port-version": 6
},
{
"git-tree": "84c6e844fcefbbce598025953699c7c536e1e783",
"version-string": "0.2.0",
"port-version": 5
},
{
"git-tree": "d6b54e2d5f02964d0ed62c141a33379221fc0c9b",
"version-string": "0.2.0-4",
"port-version": 0
},
{
"git-tree": "e9cb945cc85f30f50b5bf1250f8b0b2c3cf7e1e2",
"version-string": "0.2.0-3",
"port-version": 0
},
{
"git-tree": "aa442fbe793ad85e7551820a8e8070f269be0b36",
"version-string": "0.2.0-2",
"port-version": 0
},
{
"git-tree": "ea1452158c8956337d0a1e7b137202f6b916eaeb",
"version-string": "0.2.0-1",
"port-version": 0
},
{
"git-tree": "1b52377d6b0d38796ee2b72ffa9778eed249d397",
"version-string": "0.2.0",
"port-version": 0
}
]
}