vcpkg/versions/m-/meshoptimizer.json

45 lines
1.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "3ed757afdbfbbe133e9c4ae31e8288ea80f66860",
"version": "0.20",
"port-version": 0
},
{
"git-tree": "4443e075e83187322a4323485d302fb52746a9e4",
"version": "0.19",
"port-version": 1
},
{
"git-tree": "c13ff2acc01518548a4d669e3d2976235c55780f",
"version": "0.19",
"port-version": 0
},
{
"git-tree": "82831888ef7242fd8d00cc2b9710d33d895d76f1",
"version": "0.18",
"port-version": 1
},
{
"git-tree": "bc06ee0eb1b2510c67f2bf0d6940fd10395990a4",
"version": "0.18",
"port-version": 0
},
{
"git-tree": "a1693991d70ae383ea21f4f634f8d0f136e15bd7",
"version": "0.16",
"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": "f565fc6b5cc9a3c133af9193a7d06915cf9b6845",
"version-string": "0.14",
"port-version": 2
},
{
"git-tree": "b1e3e0ab70cf603738e55b8725d7ec834e7abfa6",
"version-string": "0.14",
"port-version": 1
}
]
}