vcpkg/versions/c-/collada-dom.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "9efe9cf28c36df64035b505810bf68f445be62a1",
"version": "2.5.0",
"port-version": 10
},
{
"git-tree": "d9c3011f64673cff7d61bac99def8048f4027f32",
"version": "2.5.0",
"port-version": 9
},
{
"git-tree": "52229b10acbed6e24eefd37ef20b30e24c6c7e71",
"version": "2.5.0",
"port-version": 8
},
{
"git-tree": "1e2fef9034d7819a290b57709aa115628cede76a",
"version": "2.5.0",
"port-version": 7
},
{
"git-tree": "c33581459a51d5ef7cc436a8aebb9d330224a6f3",
"version-string": "2.5.0",
"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 16:24:04 +08:00
{
"git-tree": "478639eba0f0d87ac17cf3b28a072edaeed35ca5",
"version-string": "2.5.0",
"port-version": 5
},
{
"git-tree": "f4daab646db5e1ac2332133fd45ef8dc98b0a017",
"version-string": "2.5.0",
"port-version": 4
},
{
"git-tree": "f53be121329578c16d057a2019a9ced1bbb24457",
"version-string": "2.5.0-3",
"port-version": 0
},
{
"git-tree": "f2a6731ce68c7c026f823f44a610574383f43eaa",
"version-string": "2.5.0-2",
"port-version": 0
},
{
"git-tree": "ba37824fd88d9f09a227ca81b84befd5ac9266f0",
"version-string": "2.5.0-1",
"port-version": 0
},
{
"git-tree": "f0552350082d5e21a81cb7603db97786ac26750b",
"version-string": "2.5.0",
"port-version": 0
}
]
}