vcpkg/versions/m-/mpfr.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "655c136cd8328e30476ae39a3fd5ff99c915907c",
"version-string": "4.1.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": "54544af431b7f178bc7bbe6604f103c40b7aa93b",
"version-string": "4.1.0",
"port-version": 1
},
{
"git-tree": "6cb77c01fbda04c72b1767e3fbd79078bd29895e",
"version-string": "4.1.0",
"port-version": 0
},
{
"git-tree": "7eefb0bc78d4e4422f50379f1ccd05f13c3ed8c2",
"version-string": "4.0.2-2",
"port-version": 0
},
{
"git-tree": "fc2c7a4c7a71980713500a219c8501e7f9662695",
"version-string": "4.0.2-1",
"port-version": 0
},
{
"git-tree": "ba226cf87ef03e64d62b703f670a6a3dca586f98",
"version-string": "4.0.1",
"port-version": 0
},
{
"git-tree": "78fc43c69a8dee26f7271682eab37876b9fc0a8b",
"version-string": "3.1.6-3",
"port-version": 0
},
{
"git-tree": "9f0187f4046838905689258fe4660a84ce42324b",
"version-string": "3.1.6-2",
"port-version": 0
},
{
"git-tree": "f9edf8950aa0bcc80bb2bafbd0383a05ae4de373",
"version-string": "3.1.6-1",
"port-version": 0
},
{
"git-tree": "8be5785333992cc870c9b8d6f4ebafaba9c67d41",
"version-string": "3.1.6",
"port-version": 0
},
{
"git-tree": "1803812dc76fc401aba673fc04a2d6c2e70949b7",
"version-string": "3.1.5-1",
"port-version": 0
},
{
"git-tree": "258b3bc093a74319c644a8108e86f784f6b2a132",
"version-string": "3.1.5",
"port-version": 0
}
]
}