vcpkg/versions/d-/dcmtk.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "ce25087f7df7d83c796eee09b4457e7aa70848ad",
"version": "3.6.6",
"port-version": 3
},
2021-11-19 13:02:06 +08:00
{
"git-tree": "24716759e4aa3fb67b014163ae3be95ad88120b6",
"version-string": "3.6.6",
"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": "6b830172b906fea2468685175d0ecca5f374217c",
"version-string": "3.6.6",
"port-version": 1
},
{
"git-tree": "0c53e59b36c487946025ebf3c2ea38ce5401d207",
"version-string": "3.6.6",
"port-version": 0
},
{
"git-tree": "c5cc40d9aabe103e79ca9315543646243b001814",
"version-string": "3.6.5+_20191213",
"port-version": 0
},
{
"git-tree": "d1268262fdac724d439ce2950d6b00058ede17fb",
"version-string": "3.6.4-2",
"port-version": 0
},
{
"git-tree": "3088b7b6f30c56be7c6b2bc5b9f67418b9c13304",
"version-string": "3.6.4-1",
"port-version": 0
},
{
"git-tree": "1360e42bd90285d9008a1cf1fc45180fe996f8ab",
"version-string": "3.6.4",
"port-version": 0
},
{
"git-tree": "4c631af1b36122e775699e41567c26de0c65959f",
"version-string": "3.6.3-1",
"port-version": 0
},
{
"git-tree": "e66fa18f406e495a6f130273c3a4be915fbdb625",
"version-string": "3.6.3",
"port-version": 0
}
]
}