vcpkg/versions/s-/string-view-lite.json

35 lines
787 B
JSON
Raw Permalink Normal View History

{
"versions": [
{
"git-tree": "0b4c926e1ab92dca1b758c91c6f994e8fc61c9aa",
"version": "1.8.0",
"port-version": 1
},
{
"git-tree": "ef393f08f15d4f962c5d9d37c4c2036dff02be98",
"version": "1.7.0",
"port-version": 1
},
{
"git-tree": "678c99fe335fc105cae78ddd0899c34ab12815ea",
"version": "1.7.0",
"port-version": 0
},
{
"git-tree": "48fa93dc01e7035c62d200c96fbe6d6d28a3c6fb",
"version": "1.6.0",
"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": "ca0acc44ac920ca460f95c75da6b05c2fa92447c",
"version-string": "1.3.0",
"port-version": 1
},
{
"git-tree": "d669e1a64927f0a008ed1e4e6179760f8696ca77",
"version-string": "1.3.0",
"port-version": 0
}
]
}