vcpkg/versions/r-/readline.json

40 lines
909 B
JSON
Raw Permalink Normal View History

{
"versions": [
{
"git-tree": "f4d85b7efb4b5a01e60852a81a351971c8c5dd78",
"version": "0",
"port-version": 5
},
{
"git-tree": "24b7f806888a5db397f8d737e361e2c9e5025c1f",
"version": "0",
"port-version": 4
},
{
"git-tree": "87822d2ce5b0936d374d94185da700e8a1cf4619",
"version-string": "0",
"port-version": 3
},
{
"git-tree": "b5c6800bc0cf924ec6bdbe627c9460839774f998",
"version-string": "0",
"port-version": 2
},
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": "1e0a62b3927f5b41e7861093dba7d2e2aa4de0b2",
"version-string": "0",
"port-version": 1
},
{
"git-tree": "6c4ab7a05504e5d9de58c16a5d6e4014ad3c70cb",
"version-string": "0",
"port-version": 0
},
{
"git-tree": "ed578a152a63b847267aa8c49898ef66090232c2",
"version-string": "5.0-1",
"port-version": 0
}
]
}