vcpkg/versions/r-/rhash.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "85de223344c08a1efc2f9f6ec6bcb69529851199",
"version": "1.4.2",
"port-version": 1
},
{
"git-tree": "385025c1a8f84dfaf6035c2d730fb4ae0d8b16fd",
"version": "1.4.2",
"port-version": 0
},
{
"git-tree": "db6e2fc777b1ffb5257989484d303fc52e9b39f5",
"version": "1.4.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": "ade1e1726434d28ad58715f9b6a3c005a1f243bb",
"version-string": "1.4.0",
"port-version": 1
},
{
"git-tree": "46e3af79b0c1d8514a24cbb981fec5b68875b3e5",
"version-string": "1.4.0",
"port-version": 0
},
{
"git-tree": "924ca26c21be0fea1995aa9ffc233c26208f6be6",
"version-string": "1.3.9",
"port-version": 0
},
{
"git-tree": "e44c0e8c3571d8651ab11aa4300583f57d5e2603",
"version-string": "1.3.8",
"port-version": 0
},
{
"git-tree": "6d57cf3b12ca8539d2667518cbe7f71c287f96bb",
"version-string": "1.3.6",
"port-version": 0
},
{
"git-tree": "aad477371ff57c14958f068d33efd53ff208b876",
"version-string": "1.3.5-1",
"port-version": 0
},
{
"git-tree": "c528c41ebe44b1c6b71ae3aecf0f525b954791bd",
"version-string": "1.3.5",
"port-version": 0
}
]
}