vcpkg/versions/f-/fuzzylite.json

40 lines
923 B
JSON
Raw Normal View History

{
"versions": [
2022-06-22 04:32:54 +08:00
{
"git-tree": "a82dbec4f8e74e116214cfe7120ec0aa4b5d41bf",
"version": "6.0",
"port-version": 6
},
{
"git-tree": "27926f33e6bab79f1eefa5c7999645f855c5fda3",
"version": "6.0",
"port-version": 5
},
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": "df47396ca528792e73f67bb8f297a064b46ef21b",
"version-string": "6.0",
"port-version": 4
},
{
"git-tree": "374c4e29fa24184089d4622061f11481dae3ddf3",
"version-string": "6.0",
"port-version": 3
},
{
"git-tree": "0a835a50d74e23daaf0851d47fe12c528cc1394f",
"version-string": "6.0-2",
"port-version": 0
},
{
"git-tree": "6acf57d6d12d70de1cce275c14f6d28d8a01c95a",
"version-string": "6.0-1",
"port-version": 0
},
{
"git-tree": "7902b2f4f48814fbd79364e1ec9acc4ece59dfb3",
"version-string": "6.0",
"port-version": 0
}
]
}