vcpkg/versions/v-/volk.json

40 lines
942 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "0b1961a45b266c648b63febbe13d717ec65007c3",
"version": "1.3.233",
"port-version": 1
},
{
"git-tree": "1a140486e53637d3cddbf7ae5052a871e489cb8b",
"version": "1.3.233",
"port-version": 0
},
{
"git-tree": "c3c879b8f9516e71bcad0365c64b9c993ec6b254",
"version": "1.3.204",
"port-version": 1
},
{
"git-tree": "83175cabc17042125828c2e0230f75b60d140cc0",
"version": "1.3.204",
"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": "0018a72c45ad8b5f9776d41ff067292b73cb7a31",
"version-string": "2019-09-26",
"port-version": 1
},
{
"git-tree": "9e40bb5aadc282b6738223dbddbe61fc2db964f9",
"version-string": "2019-09-26",
"port-version": 0
},
{
"git-tree": "abfe3c79ce18403d5fe7df4229a47b003daeb402",
"version-string": "2019-09-03",
"port-version": 0
}
]
}