vcpkg/versions/r-/rxcpp.json

40 lines
951 B
JSON
Raw Normal View History

{
"versions": [
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": "69044b3fc33b35dab3f62471daf96a2a2b27dc0a",
"version-string": "4.1.0",
"port-version": 2
},
{
"git-tree": "87ea1e19430775f0ec9de9e6fb0375a53dc87d9a",
"version-string": "4.1.0-1",
"port-version": 0
},
{
"git-tree": "34c68751d5792b90cd79a6362eb035ca905bbbd5",
"version-string": "4.1.0",
"port-version": 0
},
{
"git-tree": "ffd9e4d27973b553b24c101c2bfcc4ece8789d0c",
"version-string": "4.0.0-1",
"port-version": 0
},
{
"git-tree": "67465573d80c508387242537928fb1a0d60aa468",
"version-string": "4.0.0",
"port-version": 0
},
{
"git-tree": "ee4d8c82ef53d6277f208dedcc58b1e5ec33d545",
"version-string": "3.0.0",
"port-version": 0
},
{
"git-tree": "35f5cbf753cff48d9f2fb897c1ba0eed0a0646b5",
"version-string": "2.3.0",
"port-version": 0
}
]
}