vcpkg/versions/r-/rxcpp.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
2022-10-03 22:54:36 +02:00
{
"git-tree": "5f127fb83dfe052e029bd2febf1d9e3eac7ab134",
"version": "4.1.1",
"port-version": 1
},
{
"git-tree": "92ae6c5ff3c5a9f81dda630c0b6cc4e69766ee61",
"version": "4.1.1",
"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 01:24:04 -07: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
}
]
}